Skip to content

adding multiple columns in a single alter table statement doesn't work #675

Closed
@vidmartin

Description

@vidmartin

When I try to parse the following valid SQL statement (it runs fine on my MySQL server) via sqlparser:

alter table sometable add column b integer, add column c integer;

Instead of successfully parsing it, I get the following error:

Expected end of statement, found: ,

It seems like sqlparser doesn't understand having multiple additions in a single alter table statement. Is it possible to make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions