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

Escaped strings formatted incorrectly

Open Californian opened this issue 1 year ago • 0 comments

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.

Californian avatar Jul 22 '24 23:07 Californian