sql-formatter
sql-formatter copied to clipboard
SET datatype not handled correctly
It should not start a new line before and after the "SET" like it does here:
Here's the raw query for the 2nd example:
ALTER TABLE o2_test ADD COLUMN enum_test2 ENUM('va1','val2','val3') AFTER set_test, ADD COLUMN set_test2 SET('va1','val2','val3') AFTER enum_test2
It seems to have problem with the SET keyword in all contexts. I'll create a new issue about CHARACTER SET which it splits for some reason.