doctrine / doctrine/sql-formatter

SET datatype not handled correctly

Open
#94 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
1.9k
Forks
29
PR merge metrics
No merged PRs in 30d

Description

It should not start a new line before and after the "SET" like it does here:
![image](https://github.com/doctrine/sql-formatter/assets/467942/44b43e24-ad6b-4cbf-86f4-64d8193aa284)
![image](https://github.com/doctrine/sql-formatter/assets/467942/ae21528e-fa7c-4812-ba4f-6870bd14a5c3)
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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.