shssoichiro/sqlformat-rs

Posgresql: Incorrect intentation for one-byte character literal

andreoss opened this issue · 2 comments

PostgreSQL provides 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 Hello, this issue has been fixed in the unreleased version. You can wait for the new version to be released, then update the sqlformat package to the latest version in sleek and try again. :)

image

Thanks