Skip to content

Commit 39acb5c

Browse files
committed
clean
1 parent 96fc5e4 commit 39acb5c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

__fixtures__/generated/generated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21619,7 +21619,7 @@
2161921619
"latest/postgres/create_view-278.sql": "select pg_get_viewdef('tt19v', true)",
2162021620
"latest/postgres/create_view-279.sql": "create view tt20v as\nselect * from\n coalesce(1,2) as c,\n collation for ('x'::text) col,\n current_date as d,\n localtimestamp(3) as t,\n cast(1+2 as int4) as i4,\n cast(1+2 as int8) as i8",
2162121621
"latest/postgres/create_view-280.sql": "select pg_get_viewdef('tt20v', true)",
21622-
"latest/postgres/create_view-281.sql": "create view tt201v as\nselect\n ('2022-12-01'::date + '1 day'::interval) at time zone 'UTC' as atz,\n extract(day from now()) as extr,\n (now(), '1 day'::interval) overlaps\n (current_timestamp(2), '1 day'::interval) as o,\n 'foo' is normalized isn,\n 'foo' is nfkc normalized isnn,\n normalize('foo') as n,\n normalize('foo', nfkd) as nfkd,\n overlay('foo' placing 'bar' from 2) as ovl,\n overlay('foo' placing 'bar' from 2 for 3) as ovl2,\n position('foo' in 'foobar') as p,\n substring('foo' from 2 for 3) as s,\n substring('foo' similar 'f' escape '#') as ss,\n substring('foo' from 'oo') as ssf, -- historically-permitted abuse\n trim(' ' from ' foo ') as bt,\n trim(leading ' ' from ' foo ') as lt,\n trim(trailing ' foo ') as rt,\n trim(E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as btb,\n trim(leading E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as ltb,\n trim(trailing E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as rtb,\n CURRENT_DATE as cd,\n (select * from CURRENT_DATE) as cd2,\n CURRENT_TIME as ct,\n (select * from CURRENT_TIME) as ct2,\n CURRENT_TIME (1) as ct3,\n (select * from CURRENT_TIME (1)) as ct4,\n CURRENT_TIMESTAMP as ct5,\n (select * from CURRENT_TIMESTAMP) as ct6,\n CURRENT_TIMESTAMP (1) as ct7,\n (select * from CURRENT_TIMESTAMP (1)) as ct8,\n LOCALTIME as lt1,\n (select * from LOCALTIME) as lt2,\n LOCALTIME (1) as lt3,\n (select * from LOCALTIME (1)) as lt4,\n LOCALTIMESTAMP as lt5,\n (select * from LOCALTIMESTAMP) as lt6,\n LOCALTIMESTAMP (1) as lt7,\n (select * from LOCALTIMESTAMP (1)) as lt8,\n CURRENT_CATALOG as ca,\n (select * from CURRENT_CATALOG) as ca2,\n CURRENT_ROLE as cr,\n (select * from CURRENT_ROLE) as cr2,\n CURRENT_SCHEMA as cs,\n (select * from CURRENT_SCHEMA) as cs2,\n CURRENT_USER as cu,\n (select * from CURRENT_USER) as cu2,\n USER as us,\n (select * from USER) as us2,\n SESSION_USER seu,\n (select * from SESSION_USER) as seu2,\n SYSTEM_USER as su,\n (select * from SYSTEM_USER) as su2",
21622+
"latest/postgres/create_view-281.sql": "create view tt201v as\nselect\n ('2022-12-01'::date + '1 day'::interval) at time zone 'UTC' as atz,\n extract(day from now()) as extr,\n (now(), '1 day'::interval) overlaps\n (current_timestamp(2), '1 day'::interval) as o,\n 'foo' is normalized isn,\n 'foo' is nfkc normalized isnn,\n normalize('foo') as n,\n normalize('foo', nfkd) as nfkd,\n overlay('foo' placing 'bar' from 2) as ovl,\n overlay('foo' placing 'bar' from 2 for 3) as ovl2,\n position('foo' in 'foobar') as p,\n substring('foo' from 2 for 3) as s,\n substring('foo' from '%o%') as ss, -- if you're extracting using a pattern \n substring('foo' from 'oo') as ssf, -- historically-permitted abuse\n trim(' ' from ' foo ') as bt,\n trim(leading ' ' from ' foo ') as lt,\n trim(trailing ' foo ') as rt,\n trim(E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as btb,\n trim(leading E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as ltb,\n trim(trailing E'\\\\000'::bytea from E'\\\\000Tom\\\\000'::bytea) as rtb,\n CURRENT_DATE as cd,\n (select * from CURRENT_DATE) as cd2,\n CURRENT_TIME as ct,\n (select * from CURRENT_TIME) as ct2,\n CURRENT_TIME (1) as ct3,\n (select * from CURRENT_TIME (1)) as ct4,\n CURRENT_TIMESTAMP as ct5,\n (select * from CURRENT_TIMESTAMP) as ct6,\n CURRENT_TIMESTAMP (1) as ct7,\n (select * from CURRENT_TIMESTAMP (1)) as ct8,\n LOCALTIME as lt1,\n (select * from LOCALTIME) as lt2,\n LOCALTIME (1) as lt3,\n (select * from LOCALTIME (1)) as lt4,\n LOCALTIMESTAMP as lt5,\n (select * from LOCALTIMESTAMP) as lt6,\n LOCALTIMESTAMP (1) as lt7,\n (select * from LOCALTIMESTAMP (1)) as lt8,\n CURRENT_CATALOG as ca,\n (select * from CURRENT_CATALOG) as ca2,\n CURRENT_ROLE as cr,\n (select * from CURRENT_ROLE) as cr2,\n CURRENT_SCHEMA as cs,\n (select * from CURRENT_SCHEMA) as cs2,\n CURRENT_USER as cu,\n (select * from CURRENT_USER) as cu2,\n USER as us,\n (select * from USER) as us2,\n SESSION_USER seu,\n (select * from SESSION_USER) as seu2,\n SYSTEM_USER as su,\n (select * from SYSTEM_USER) as su2",
2162321623
"latest/postgres/create_view-282.sql": "select pg_get_viewdef('tt201v', true)",
2162421624
"latest/postgres/create_view-283.sql": "create view tt21v as\nselect * from tt5 natural inner join tt6",
2162521625
"latest/postgres/create_view-284.sql": "select pg_get_viewdef('tt21v', true)",

__fixtures__/kitchen-sink/latest/postgres/create_view.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ select
686686
overlay('foo' placing 'bar' from 2 for 3) as ovl2,
687687
position('foo' in 'foobar') as p,
688688
substring('foo' from 2 for 3) as s,
689-
substring('foo' similar 'f' escape '#') as ss,
689+
substring('foo' from '%o%') as ss, -- if you're extracting using a pattern
690690
substring('foo' from 'oo') as ssf, -- historically-permitted abuse
691691
trim(' ' from ' foo ') as bt,
692692
trim(leading ' ' from ' foo ') as lt,

__fixtures__/postgres/create_view.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ select
731731
overlay('foo' placing 'bar' from 2 for 3) as ovl2,
732732
position('foo' in 'foobar') as p,
733733
substring('foo' from 2 for 3) as s,
734-
substring('foo' similar 'f' escape '#') as ss,
734+
substring('foo' from '%o%') as ss, -- if you're extracting using a pattern
735735
substring('foo' from 'oo') as ssf, -- historically-permitted abuse
736736
trim(' ' from ' foo ') as bt,
737737
trim(leading ' ' from ' foo ') as lt,

packages/transform/test-utils/skip-tests/transformer-errors.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export const transformerErrors: SkipTest[] = [
99
[16, 17, "latest/postgres/create_am-106.sql", "16-17 transformer fails with 'syntax error at or near 'DEFAULT'"],
1010

1111
[15, 16, "original/upstream/json-102.sql", "15-16 transformer fails with function name transformation - adds pg_catalog schema qualification"],
12+
1213
[15, 16, "latest/postgres/create_view-281.sql", "15-16 transformer fails with AST transformation mismatch"],
14+
1315
// [15, 16, "latest/postgres/create_index-85.sql", "15-16 transformer fails with missing nulls_not_distinct property"],
1416
// [15, 16, "latest/postgres/create_index-83.sql", "15-16 transformer fails with missing nulls_not_distinct property"],
1517
// [15, 16, "latest/postgres/create_index-72.sql", "15-16 transformer fails with missing nulls_not_distinct property"],

0 commit comments

Comments
 (0)