Closed theking2 closed 4 months ago
and ultimatily here https://mariadb.com/kb/en/parentheses/
You're saying that you're using version 4.1.1. I suppose you're referring to the version of the VS Code plugin.
According to my testing, this bug does not exist in SQL Formatter. You can try it on the demo page.
The most likely cause is that you haven't selected MariaDB as the SQL dialect that you're formatting. See the FAQ.
I'm closing this. Feel free to comment if the above does not solve your issue.
I went to a number of SQL formatters lately and had not specified MariaDB as dialect for this one. After adding this to settings.json
"SQL-Formatter-VSCode.dialect": "mariadb",
the problem went away. Thanks.
Input data
Which SQL and options did you provide as input?
Expected Output
Actual Output
Usage
MariaDB does not like a space between
GROUP_CONCAT
and the(
. Don't ask but using the formatter breaks my code here.