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
sqlc generates incorrect code when using table aliases inside left joins. #1491 was supposed to fix it, but I'm still able to reproduce it.
The StripeID field should be of type sql.NullString but it isn't.
I also found a case where when I left joined table a to b, the generated model for the b columns were not following the types of actual schema model b.
For instance ID for table b is NOT NULL, but the select query a., b. makes all of the b.* results become nullable.
nevermind, I'm dumb, left join implies right side is nullable duh
Version
1.15.0
What happened?
sqlc generates incorrect code when using table aliases inside left joins.
#1491 was supposed to fix it, but I'm still able to reproduce it.
The
StripeID
field should be of typesql.NullString
but it isn't.Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/4827a9efa8fd793d7ee704f877890af04675aa382a3942d0f9807a95ae779cf7
What operating system are you using?
macOS
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: