phpmyadmin / sql-parser

A validating SQL lexer and parser with a focus on MySQL dialect.

Home Page:https://packagist.org/packages/phpmyadmin/sql-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ALTER .. MODIFY ... ENUM failed! (Regression)

BorisValgo opened this issue · comments

Hi,

From the version 5.8.1 ALTER ENUM FAILD.
For example :
ALTER TABLE users_type MODIFY limitations ENUM('tout', 'rien', 'bu', 'agence', 'agence_limite', 'n-1', 'agence_inactif'); UPDATE users_type SET limitations = 'agence_inactif' WHERE id_users_type = 19;
When we user the 5.8.0 version the "lint-query --query" say OK but in 5.8.1 we have exception :
#1: A new statement was found, but no delimiter between it and the previous one. (near "UPDATE" at position 122)

Thank you

The fix was merged into 5.8.x, can you test en let us know if this is fixed before a release?

Released as 5.8.2