Skip to content
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

Eager loading user table results in an sql error if the user table has a delete_at field #1307

Open
nigeltiany opened this issue Sep 20, 2023 · 0 comments

Comments

@nigeltiany
Copy link

nigeltiany commented Sep 20, 2023

What version of SQLBoiler are you using (sqlboiler --version)?

v4.14.2

What is your database and version (eg. Postgresql 10)

Postgres 15

If this happened at runtime what code produced the issue? (if not applicable leave blank)

Eager loading user table results in an sql error if the user table has a delete_at field

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

a table named user with a deleted_at field and a query that eager loads the users table through a pivot table

Further information. What did you do, what did you expect?

#583

debug log output: SELECT * FROM "user" WHERE ("user"."id" IN ($1)) AND (user.deleted_at is null);
error: failed to eager load User: failed to eager load User: pq: syntax error at or near "."

expected log output: SELECT * FROM "user" WHERE ("user"."id" IN ($1)) AND ("user"."deleted_at" is null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants