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
When attempting to alter a table column type with a USING clause, pg-mem throws a syntax error. This operation is supported by PostgreSQL but seems to be either unimplemented or incorrectly handled in pg-mem. This would be helpful for migration testing.
To Reproduce
To reproduce the issue, you can run the following SQL command on the pg-mem playground:
CREATETABLEchunks (userId text);
ALTERTABLE"chunks" ALTER COLUMN "userId" TYPE integer USING ("userId"::integer);
This command should convert the userId column from text to integer using a cast, but it fails in pg-mem while it succeeds in an actual PostgreSQL database.
pg-mem version
3.0.4
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to alter a table column type with a USING clause, pg-mem throws a syntax error. This operation is supported by PostgreSQL but seems to be either unimplemented or incorrectly handled in pg-mem. This would be helpful for migration testing.
To Reproduce
To reproduce the issue, you can run the following SQL command on the pg-mem playground:
This command should convert the
userId
column from text to integer using a cast, but it fails in pg-mem while it succeeds in an actual PostgreSQL database.pg-mem version
3.0.4
The text was updated successfully, but these errors were encountered: