Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
PG::AmbiguousColumn: ERROR: ORDER BY "location" is ambiguous
LINE 5: ORDER BY location DESC, id
^
Simplified backtrace: async_exec -> block in execute_query -> log_connection_yield -> execute_query -> block in execute -> check_disconnect_errors -> execute -> _execute -> block (2 levels) in execute -> check_database_errors -> block in execute -> block in synchronize -> hold -> synchronize -> execute -> execute -> fetch_rows -> each -> to_a -> expected -> block (3 levels) in <top (required)> -> ------------------ -> --- Caused by: --- -> PG::AmbiguousColumn: -> ERROR: ORDER BY "location" is ambiguous -> LINE 5: ORDER BY location DESC, id -> ^ -> async_exec
This comment is hidden because it contains spoiler information about the solution
if the array is larger than another array, there will be an error, and you do not have a check
This comment is hidden because it contains spoiler information about the solution