Skip to content

'ALTER TABLE ... RENAME INDEX ...' statement not parsed correctly #405

@nachopitt

Description

@nachopitt

Hello,

The following SQL statement is not parsed entirely by SQL Parser

ALTER TABLE `transactions` RENAME INDEX `fk_transactions_catalog_entries1_idx` TO `fk_transactions_catalog_entries2_idx`

It fails with the following message:

Missing comma before start of a new alter operation. (near TO)

The same happens in PhpMyAdmin v5.2.0 as well:

image

Do you know what could be happening?

Thanks a lot!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions