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 () => {
128
128
},
129
129
},
130
130
"stmt_len": undefined,
131
+ "stmt_location": 0,
131
132
},
132
133
},
133
134
],
@@ -164,6 +165,7 @@ create schema if not exists test_schema;
164
165
},
165
166
},
166
167
"stmt_len": 40,
168
+ "stmt_location": 0,
167
169
},
168
170
},
169
171
],
@@ -454,6 +456,7 @@ CREATE TABLE table_name (
454
456
},
455
457
},
456
458
"stmt_len": 283,
459
+ "stmt_location": 0,
457
460
},
458
461
},
459
462
],
@@ -463,14 +466,14 @@ CREATE TABLE table_name (
463
466
464
467
const deparse = pgMeta . deparse ( res . data ! )
465
468
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
+ `)
474
477
} )
475
478
476
479
test ( 'formatter' , async ( ) => {
You can’t perform that action at this time.
0 commit comments