I use a bunch of custom domains in my application for validation and, because those domains get assigned custom type ids which this library doesn't (I think) support, I end up having to cast various columns. I've noticed that casting to int4 and int8 and text works just fine
I use a bunch of custom domains in my application for validation and, because those domains get assigned custom type ids which this library doesn't (I think) support, I end up having to cast various columns. I've noticed that casting to int4 and int8 and text works just fine
but casting to integer produces invalid sql:
Note the quotes around
INTEGER
. In Postgres, executing this query produces an error:Casting to
smallint
,bigint
,decimal
ornumeric
exhibits the same behavior.