-
Notifications
You must be signed in to change notification settings - Fork 552
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
Count from subquery fails with missing alias in Postgres #1433
Comments
Can't reproduce on PostgreSQL 16.3. What version do you use? |
It seems versions prior to 16 require the alias. |
renom
added a commit
to renom/sqlboiler
that referenced
this issue
Jan 20, 2025
renom
added a commit
to renom/sqlboiler
that referenced
this issue
Jan 20, 2025
Added PR with a fix. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, with v4.17.0 the following fix was introduced:
When using this fix with Postgres, the following error is returned:
pq: subquery in FROM must have an alias
Here an example:
Example usage:
SQL:
You can try it in https://onecompiler.com/postgresql/435bk9nra if you remove the as foo
The text was updated successfully, but these errors were encountered: