Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
- name: deparser
run: cd ./packages/deparser && yarn test

- name: enums
run: cd ./packages/enums && yarn test
- name: proto-parser
run: cd ./packages/proto-parser && yarn test

- name: types
run: cd ./packages/types && yarn test
- name: utils
run: cd ./packages/utils && yarn test

- name: transform
run: cd ./packages/transform && yarn test
2 changes: 2 additions & 0 deletions __fixtures__/generated/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -21148,6 +21148,8 @@
"misc/cascades-23.sql": "DROP TRANSFORM IF EXISTS FOR some_type LANGUAGE plpgsql CASCADE",
"misc/cascades-24.sql": "ALTER TABLE some_table DROP COLUMN some_column CASCADE",
"misc/cascades-25.sql": "ALTER TABLE some_table DROP CONSTRAINT some_constraint CASCADE",
"misc/booleans-cast-1.sql": "SELECT * FROM myschema.mytable WHERE a = TRUE",
"misc/booleans-cast-2.sql": "SELECT * FROM myschema.mytable WHERE a = CAST('t' AS boolean)",
"latest/postgres/create_view-1.sql": "CREATE FUNCTION interpt_pp(path, path)\n RETURNS point\n AS 'regresslib'\n LANGUAGE C STRICT",
"latest/postgres/create_view-2.sql": "CREATE TABLE real_city (\n\tpop\t\t\tint4,\n\tcname\t\ttext,\n\toutline \tpath\n)",
"latest/postgres/create_view-3.sql": "COPY real_city FROM 'filename'",
Expand Down
12 changes: 12 additions & 0 deletions __fixtures__/generated/upstream-diff.json
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,18 @@
"original": "DROP SUBSCRIPTION IF EXISTS some_sub CASCADE",
"upstream": "DROP SUBSCRIPTION IF EXISTS some_sub"
},
"misc/booleans-cast-1.sql": {
"original": "SELECT * FROM myschema.mytable WHERE a = TRUE",
"upstream": "SELECT * FROM myschema.mytable WHERE a = false"
},
"misc/booleans-cast-2.sql": {
"original": "SELECT * FROM myschema.mytable WHERE a = CAST('t' AS boolean)",
"upstream": "SELECT * FROM myschema.mytable WHERE a = true"
},
"misc/booleans-cast-3.sql": {
"original": "SELECT * FROM myschema.mytable WHERE a = 't'::boolean",
"upstream": "SELECT * FROM myschema.mytable WHERE a = true"
},
"latest/postgres/create_view-1.sql": {
"original": "CREATE FUNCTION interpt_pp(path, path)\n RETURNS point\n AS 'regresslib'\n LANGUAGE C STRICT",
"upstream": "CREATE FUNCTION interpt_pp(path, path) RETURNS point AS $$regresslib$$ LANGUAGE c CALLED ON NULL INPUT"
Expand Down
3 changes: 3 additions & 0 deletions __fixtures__/kitchen-sink/misc/booleans-cast.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT * FROM myschema.mytable WHERE a = TRUE;
SELECT * FROM myschema.mytable WHERE a = CAST('t' AS boolean);
SELECT * FROM myschema.mytable WHERE a = 't'::boolean;
2,330 changes: 2,330 additions & 0 deletions __fixtures__/output/utils/astHelpers/bothEnabled/asts.ts

Large diffs are not rendered by default.

Loading