dealing with ambiguous column names #831
Unanswered
mountainpath9
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Well this is the use case to recommend SeaORM for:
Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
-
It looks like this unresolved discussion from 2023 is dealing with the same issue: I've tried to create my own metadata pattern for the db schema in lieu of the enum based approach, but I've run into the same problem where a single type representing a column can't implement both:
Hence I'm also interested in the answer to this question: Can this general impl for InfoColumnRef be replaced with more specific ones? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With these two tables:
I'd like to be able to build and execute a query like this:
on postgres, this fails on execution with the following error:
I can fix this by using tuples for all the columns with ambiguous names:
but I had to discover all of these by debugging runtime failures. So I've got into the habit of using tuples everywhere to avoid column name ambiguities.
Is this what others do? It makes for very verbose query code.
Beta Was this translation helpful? Give feedback.
All reactions