You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, libpg_query seems to ignore this rule (static void deparseConstraint) and tests are not successful in kitchen-sink.test.js on sqlfromparser step.
expect(cleanLines(sql)).toMatchSnapshot();expect(cleanLines(sqlfromparser)).toMatchSnapshot();/* <-- HERE */
Summary of all failing tests
FAIL test/__tests__/kitchen-sink.test.js (8.552 s)
● kitchen sink › alter
expect(received).toMatchSnapshot()
Snapshot name: `kitchen sink alter 2`
- Snapshot - 1
+ Received + 1
- ALTER TABLE scha.foo ADD CONSTRAINT "MyConstraintKey" FOREIGN KEY ( order_id ) REFERENCES othr.orders ( id );
+ ALTER TABLE scha.foo ADD CONSTRAINT MyConstraintKey FOREIGN KEY ( order_id ) REFERENCES othr.orders ( id );
Should I open a new issue in pgsql-parser and/or libpg_query?
Regards
The text was updated successfully, but these errors were encountered:
So a lot of this repository was originally built using pgsql-parser as the test case, so we should definitely get pgsql-parser updated.
The structure of the repos is very similar! The pgsql-parser is likely easier to edit than this one. Let's make an issue there if it doesn't support the names yet.
Hi,
In
deparser
, foreign constraints' name should be quoted as others constraints' name.However,
libpg_query
seems to ignore this rule (static void deparseConstraint) and tests are not successful inkitchen-sink.test.js
onsqlfromparser
step.Should I open a new issue in
pgsql-parser
and/orlibpg_query
?Regards
The text was updated successfully, but these errors were encountered: