Skip to content

ALTER TABLE … RENAME COLUMN … TO … not understood by the parser/linter #430

Closed
@niconoe-

Description

@niconoe-

When trying to parse the following SQL statement, the AlterStatement createed regarding this SQL is missing the "TO" option and the new name of the column.

ALTER TABLE potato RENAME COLUMN `KIND` TO `VARIETY`;

The linter give also the error:

> bin/lint-query --query 'ALTER TABLE potato RENAME COLUMN `KIND` TO `VARIETY`;'
#1: Virgule manquante avant le début d’une nouvelle opération ALTER. (near "TO" at position 40)

(French translation for "#1: Missing comma before the beginning of a new ALTER operation.").

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions