sql-formatter-org / sql-formatter

A whitespace formatter for different query languages
https://sql-formatter-org.github.io/sql-formatter/
MIT License
2.36k stars 405 forks source link

[FORMATTING] % modulo formatting causes parse error #699

Closed avishj closed 10 months ago

avishj commented 10 months ago

Input data

Which SQL and options did you provide as input?

SELECT title FROM movies WHERE year % 2 = 0;

Expected Output

SELECT
    title 
FROM 
    movies 
WHERE 
    year % 2 = 0;

Actual Output

SELECT title FROM movies WHERE year % 2 = 0;

Usage

nene commented 10 months ago

Simply configure the dialect as Transact-SQL. See the FAQ.

Also, the Prettier SQL VSCode extension is no more maintained.