Skip to content
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

Support ALTER TABLE with multiple entries #85

Open
gabssnake opened this issue Mar 19, 2021 · 1 comment
Open

Support ALTER TABLE with multiple entries #85

gabssnake opened this issue Mar 19, 2021 · 1 comment

Comments

@gabssnake
Copy link

Hi, hope you're doing well :)

We found that multiple statements in ALTER TABLE are not yet supported.
Individual statements work well though. Hope this helps.

-- Some example table
CREATE TABLE example (id INTEGER);

INSERT INTO example (id) VALUES (1), (2), (3);

-- Unexpected token comma after `uuid`
ALTER TABLE example
    RENAME COLUMN id to uuid,
    ADD COLUMN name VARCHAR;

-- Independent statement work well 
ALTER TABLE example
    RENAME COLUMN id to uuid;

ALTER TABLE example
    ADD COLUMN name VARCHAR;
@oguimbal
Copy link
Owner

Hi, I'm fine thanks !

Good catch 👍 Adding to the todo list...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants