You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is interesting edge case that needs to be addressed. In general aliases are already used across pqt. As an example you can check generateRepositoryFindQuery method in /pqtgo/generator.go.
@yurykozyrev what would be your approach to solve this issue?
I would suggest to introduce table aliases for using them in query.
Problem
E.g.: if we use column like this
it will generate the following code in
SELECT ... ON CONFLICT ... DO UPDATE SET ...
:which will cause an error
column reference "version" is ambiguous
Suggestion
Add table alias so it produce the code like
The text was updated successfully, but these errors were encountered: