-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ALTER TABLE] Support parsing multiple alterations #57
Comments
Yup, this syntax is not supported by pgsql-ast-parser. I'm transfering the issue there. I dont have time to handle this these days, unfortunately 😑 So I cant give you an ETA, sorry Thanks for the report |
No problem I understand I actually liked your library because it is very configurable but sadly due to this error I can't use it in my project if you don't mind can you provide any suggestions for setting up a in memory instance of postgres because I have to write unit tests for my code and I am unable to find any usable module :/ |
There arent many alternatives, as far as I know. Cant you split your alter statements in multiple single alter statements (that would be supported by pg-mem) ? |
Released as pgsql-ast-parser@9.0.0, thanks to @bchelli |
I am facing this error when I try to run this query below:-
ALTER TABLE reviews ADD COLUMN IF NOT EXISTS reviewer UUID,ADD COLUMN IF NOT EXISTS reviewee UUID,ADD COLUMN IF NOT EXISTS job_id UUID,ADD COLUMN IF NOT EXISTS review VARCHAR,ADD COLUMN IF NOT EXISTS rating FLOAT DEFAULT 0;;
This query is working properly when I run it through SQL runner :/
The text was updated successfully, but these errors were encountered: