We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First, thanks for the great project!
When using join helpers with a schema-ed DB in version v0.20.5, it seems that the join FROM clause doesn't use an alias, but the ON clause does. This:
q := bobmodel.AJets(ctx, db, bobmodel.SelectJoins(ctx).AJets.InnerJoin.Pilot, ) fmt.Println(q.MustBuild())
Gives me:
SELECT * FROM "a"."jets" AS "a.jets" INNER JOIN "a"."pilots" ON ("a.pilots"."pilotid" = "a.jets"."pilotid")
Which gives the error:
pq: missing FROM-clause entry for table "a.pilots"
It looks like the join helper should alias the table name, like so:
SELECT * FROM "a"."jets" AS "a.jets" INNER JOIN "a"."pilots" AS "a.pilots" ON ("a.pilots"."pilotid" = "a.jets"."pilotid")
The text was updated successfully, but these errors were encountered:
Looks like a bug. I'll find some time to fix it, if it is urgent for you, you can send in a PR and I'll review it.
Sorry, something went wrong.
Check if #115 fixes this for you.
Successfully merging a pull request may close this issue.
First, thanks for the great project!
When using join helpers with a schema-ed DB in version v0.20.5, it seems that the join FROM clause doesn't use an alias, but the ON clause does.
This:
Gives me:
Which gives the error:
It looks like the join helper should alias the table name, like so:
The text was updated successfully, but these errors were encountered: