pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

failed to parse desired state schema file: failed to split SQL statements: syntax error at or near "default"

Open RajMishraa opened this issue 1 year ago • 4 comments

I made some changes to .sql file that I dumped from "pgschema dump" and when i ran:

pgschema plan --host xxxxxxxxxxxxxxxxx.rds.amazonaws.com --db xxxxxxxxxxxxxxxxx --user xxxxxxxxxxxxxxxxx --password xxxxxxxxxxxxxxxxx --schema schema --file schema.sql

I got below error: Error: failed to parse desired state schema file: failed to split SQL statements: syntax error at or near "default" failed to parse desired state schema file: failed to split SQL statements: syntax error at or near "default"

RajMishraa avatar Sep 18 '25 12:09 RajMishraa

Could you please show the original schema.sql and the change you made?

tianzhou avatar Sep 18 '25 13:09 tianzhou

Apologies, Can't share the schema.sql due to the compliance.

but I dug deeper and found out, i have a table which contains a column

Image

Also, I just made this change, but when I ran the pgschema plan

It was showing a lot of files affected with mission where conditions

RajMishraa avatar Sep 18 '25 14:09 RajMishraa

This sounds like a bug. I am happy to take a look if you could provide a sanitized schema

tianzhou avatar Sep 18 '25 14:09 tianzhou

Close due to lack of steps to reproduce

tianzhou avatar Oct 15 '25 11:10 tianzhou