File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ test('parser select statements', async () => {
128128 },
129129 },
130130 "stmt_len": undefined,
131+ "stmt_location": 0,
131132 },
132133 },
133134 ],
@@ -164,6 +165,7 @@ create schema if not exists test_schema;
164165 },
165166 },
166167 "stmt_len": 40,
168+ "stmt_location": 0,
167169 },
168170 },
169171 ],
@@ -454,6 +456,7 @@ CREATE TABLE table_name (
454456 },
455457 },
456458 "stmt_len": 283,
459+ "stmt_location": 0,
457460 },
458461 },
459462 ],
@@ -463,14 +466,14 @@ CREATE TABLE table_name (
463466
464467 const deparse = pgMeta . deparse ( res . data ! )
465468 expect ( deparse . data ) . toMatchInlineSnapshot ( `
466- "CREATE TABLE table_name (
467- id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
468- inserted_at pg_catalog.timestamptz DEFAULT ( timezone('utc'::text, now()) ) NOT NULL,
469- updated_at pg_catalog.timestamptz DEFAULT ( timezone('utc'::text, now()) ) NOT NULL,
470- data jsonb,
471- name text
472- );"
473- ` )
469+ "CREATE TABLE table_name (
470+ id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
471+ inserted_at pg_catalog.timestamptz DEFAULT ( timezone('utc'::text, now()) ) NOT NULL,
472+ updated_at pg_catalog.timestamptz DEFAULT ( timezone('utc'::text, now()) ) NOT NULL,
473+ data jsonb,
474+ name text
475+ );"
476+ `)
474477} )
475478
476479test ( 'formatter' , async ( ) => {
You can’t perform that action at this time.
0 commit comments