-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alias issue #69
Comments
seems the real issue is "Example 2" is generating completely wrong query 🤔 |
Yes, it fixes my issue with aliases: The only one left is this one: go-rel/rel#370 |
@Fs02 When are you going to release it? Or there something else needs to be completed? I am forced to write raw sql queries in my project because of that alias bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have found the following issues around aliases.
Example 1
Query:
rel.Select("c.id", "c.name").From("contacts c")
Expected:
SELECT "c"."id","c"."name" FROM "contacts" "c";
Actual:
SELECT "c"."id","c"."name" FROM "contacts c";
Example 2
Query:
rel.Select("c.id", "c.name").From("contacts as c")
Expected:
SELECT "c"."id","c"."name" FROM "contacts" as "c";
Actual:
SELECT "contacts" AS "c","contacts" AS "c" FROM "contacts" AS "c";
Playground
Please find more advanced test query with aliases using the playground: https://go.dev/play/p/u9LoFRsSh2h
The text was updated successfully, but these errors were encountered: