Skip to content

Missing comma before start of a new alter operation. #218

@cedricATBQ

Description

@cedricATBQ

Hi,

We're using sql-parser to validate SQL scripts within a deployment script. A statement is throwing an error "Missing comma before start of a new alter operation." since 4.3.0 and we can't get why.

The statement :

ALTER TABLE `api_tab_user` CHANGE `rank_id` `rank_id` INT(4) NOT NULL DEFAULT '4';

We change the rank_id to int(4) not null and default value 4. There is only one change so why we get this error?

For now we fixed the version of SQL parser to 4.2.x.

Thanks in advance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions