Commit graph

6 commits

Author SHA1 Message Date
go-jet
01305a138f Add automatic type cast for integer literals
In parameterized statements integer literals, like Int(num), are replaced with a placeholders. For some expressions,
postgres interpreter will not have enough information to deduce the type. If this is the case postgres returns an error.
Int8, Int16, Int32.... functions now will add automatic type cast over a placeholder, so type deduction is always possible.
2021-12-26 17:29:43 +01:00
go-jet
9385f462df Allow Bytea literal constructor to accept byte array.
Bytea literal constructor now accepts string or []byte a a parameter.
2021-05-12 12:29:22 +02:00
DevDevious
6b06bc6a37 Added unsigned integer literals. 2021-02-22 13:58:28 -05:00
go-jet
4a3579e7f9 Postgres interval with date/time expression arithmetic. 2019-12-01 18:34:44 +01:00
go-jet
614c7e9754 Literal and cast clean up. 2019-08-13 10:16:26 +02:00
go-jet
647ef21aaf Dialect refactor improvements and clean up. 2019-08-06 10:29:04 +02:00