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
select CASE WHEN true THEN null
ELSE 0 END::float8,
is a float64. I'm basically having to do a bunch of weird stuff in sql to get sqlc to give up and codegen an interface{}, which sucks, but at least does not panic. And then I cast it at runtime to the correct type.
What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered:
go:
#other config ommited for brievityoverrides:
- db_type: "float8"# nullable: true => should not be set, because it causes generation of `float64` idk why btwgo_type:
import: 'github.com/jackc/pgx/v5/pgtype'type: 'Float8'
What do you want to change?
for example:
select null::float8
is apgtype.Float8
. However,is a float64. I'm basically having to do a bunch of weird stuff in sql to get sqlc to give up and codegen an
interface{}
, which sucks, but at least does not panic. And then I cast it at runtime to the correct type.What database engines need to be changed?
PostgreSQL
What programming language backends need to be changed?
Go
The text was updated successfully, but these errors were encountered: