sqlformat-rs icon indicating copy to clipboard operation
sqlformat-rs copied to clipboard

Posgresql: Incorrect intentation for one-byte character literal

Open andreoss opened this issue 2 years ago • 0 comments

PostgreSQL provide a special syntax for a one-byte character E'<char>' sqlformat puts space after E which is incorrect

$ echo "SELECT 'new line -> '||E'\n';" | sleek                                                                                                                              
SELECT                                                                                                                                                                       
    'new line -> ' || E '\n';

andreoss avatar Sep 03 '23 03:09 andreoss