ALTER TABLE ADD UNIQUE (KEY)
is not recognized as an alter option
#610
Labels
ALTER TABLE ADD UNIQUE (KEY)
is not recognized as an alter option
#610
When trying to parse some SQL like:
or
the parser considers every token after the
ADD
keyword as "unknown", while adding indexes or constraint works well. This is due to the lack of the presence of the options "UNIQUE" and "UNIQUE KEY" in theAlterOperation::$TABLE_OPTIONS
array.I'll provide a PR about it, fixing also the unit tests about the parser expecting unknown tokens rather than well accepted options.
The text was updated successfully, but these errors were encountered: