-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create table unique index parameters problem fixed #287
Conversation
emin100
commented
May 26, 2023
•
edited
Loading
edited
did int, name varchar(40), UNIQUE (name) WITH (fillfactor=70) ) WITH (fillfactor=70); Failure/Error: it { is_expected.to eq oneline_query } expected: "CREATE TABLE distributors (did int, name varchar(40), UNIQUE (name) WITH (fillfactor=70)) WITH (fillfactor=70)" got: "CREATE TABLE distributors (did int, name varchar(40), UNIQUE (name)) WITH (fillfactor=70)"
@emin100 Thanks for the contribution! For deparser changes, we would actually need to add this in the C library (https://github.com/pganalyze/libpg_query), and then update the source here. Do you want to open a PR there? You can add the test case to the deparse_tests.c file. |
@lfittl thanks for the reply. I will open PR to libpg_query. |
@lfittl I opened a new PR to libpg_query repo. |
pganalyze/pg_query#287 pganalyze/libpg_query#193 sql with unescaped chars fixed. results changed.
expected: "SHOW ALL" got: "SHOW SESSION ALL" libpg_query PR: pganalyze/libpg_query#193
fixed another deparse problem
libpg_query PR: pganalyze/libpg_query#193 |
CREATE PROCEDURE insert_data(a integer, b integer) LANGUAGE SQL BEGIN ATOMIC INSERT INTO tbl VALUES (a); INSERT INTO tbl VALUES (b); END; ERROR for "CREATE PROCEDURE insert_data(a int, b int) LANGUAGE sql BEGIN ATOMIC INSERT INTO tbl VALUES (a); INSERT INTO tbl VALUES (b); END" deparse: unpermitted node type in a_expr/b_expr: 231
libpg_query PR: pganalyze/libpg_query#195 |
From the history here it looks like this has been fixed in libpg_query, so I'll close this. |