UnsupportedResultException: The result contains the unsupported data type regclass
getting this error when i try to run drizzle-kit push
I am using sst ion to deploy my rds instance.
drizzle-kit version:
0.24.0
drizzle-orm version: 0.33.0
local storage json:
`
I reproduced this using the sst ion guide:
https://ion.sst.dev/docs/start/aws/drizzle/5 Replies
Thought this was just me, started a GitHub issue for this https://github.com/drizzle-team/drizzle-kit-mirror/issues/544
GitHub
UnsupportedResultException: The result contains the unsupported dat...
Seemingly after drizzle-kit version 0.22.8 running drizzle-kit push results in UnsupportedResultException: The result contains the unsupported data type regclass Using sst ion with Postgres and dri...
š cc @Andrew Sherman
will try to reproduce
did you use the same schema as in ion guide?
yea, same schema
@Andrew Sherman Were you been able to reproduce? Seems Iām still having this issue on latest
fwiw changing
pg_get_serial_sequence('"${tableSchema}"."${tableName}"', a.attname)::regclass as seq_name, INFORMATION_SCHEMA.COLUMNS.column_name,
to
pg_get_serial_sequence('"${tableSchema}"."${tableName}"', a.attname) as seq_name, INFORMATION_SCHEMA.COLUMNS.column_name,
seems to fix this, not sure of further consequences
https://github.com/drizzle-team/drizzle-orm/blob/main/drizzle-kit/src/serializer/pgSerializer.ts#L743