Ad
  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    if the array is larger than another array, there will be an error, and you do not have a check

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution