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
The generated code uses an int64 despite the database column being a FLOAT.
Changing the engine to sqlite generates the correct code.
I suspected that sqlc detects the wrong postgres type in the first place since changing the query to SELECT CAST(SUM(length) as FLOAT) FROM foo; makes it work as expected.
Uh oh!
There was an error while loading. Please reload this page.
Version
1.29.0
What happened?
The generated code uses an
int64
despite the database column being aFLOAT
.Changing the
engine
tosqlite
generates the correct code.I suspected that sqlc detects the wrong postgres type in the first place since changing the query to
SELECT CAST(SUM(length) as FLOAT) FROM foo;
makes it work as expected.Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/c334e3b188cf5aedbb0cfd252e75ecc3331fcb398a50e8880899a2a60e11a84c
What operating system are you using?
Mac
What database engines are you using?
postgresql
What type of code are you generating?
golang
The text was updated successfully, but these errors were encountered: