sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

SET datatype not handled correctly

Open seb303 opened this issue 2 years ago • 1 comments

It should not start a new line before and after the "SET" like it does here: image image 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

seb303 avatar Nov 23 '23 21:11 seb303

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.

Menelion avatar Jan 09 '25 23:01 Menelion