shssoichiro / sqlformat-rs

SQL Formatter written in Rust
Apache License 2.0
89 stars 26 forks source link

Escaped strings formatted incorrectly #39

Closed Californian closed 2 months ago

Californian commented 4 months ago

When formatting the postgres query:

INSERT INTO
    "public"."users"("name")
VALUES
    (E'alice');

It turns into:

INSERT INTO
    "public"."users"("name")
VALUES
    (E 'alice');

The space between the E and the string 'alice' isn't valid.