Replies: 1 comment 2 replies
-
I think always qualifying the primary key would be fine. To work around, you could also set your own order, as Sequel only orders automatically if not already ordered. Another thing I've been considering is disabling the automatic order on PostgreSQL, where it isn't needed as a cursor is used by default (and for other adapters that use similar optimizations). Not sure whether this should be done by default or via an extension/plugin. Doing it by default is a minor backwards compatibility break, as some users may be expecting the implicit order. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table with millions of rows that I want to update one column from the value in another table. I tried this:
But I got this error
PG::AmbiguousColumn: ERROR: column reference "id" is ambiguous (Sequel::DatabaseError) LINE 1: SELECT "id" FROM "table_a", ...
I modified Sequel to always qualify the
id
in paged_operations (davekaro@94eb8e0) and it worked. Wondering if there is another approach, or if I should push a PR.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions