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

REFERENCES xyz ON UPDATE .. causes formatter to treat the remaining as an UPDATE statement

Open jcowgar opened this issue 1 year ago • 0 comments

CREATE TABLE a (b integer references c (id) on update restrict, other integer)

results in

CREATE TABLE a (
    b integer REFERENCES c (id) ON
    UPDATE
        RESTRICT,
        other integer
);

jcowgar avatar Oct 15 '23 17:10 jcowgar