Skip to content

Add regression tests for issue #85 (Postgres quoted identifiers)#627

Merged
collerek merged 1 commit into
masterfrom
test/issue-85-regression
May 8, 2026
Merged

Add regression tests for issue #85 (Postgres quoted identifiers)#627
collerek merged 1 commit into
masterfrom
test/issue-85-regression

Conversation

@collerek
Copy link
Copy Markdown
Collaborator

@collerek collerek commented May 8, 2026

Summary

Verifies that #85 — Postgres quoted identifiers — is fixed under the v3 (sqlglot) parser, and adds regression tests for the two follow-up regressions reported later in the issue thread.

The three queries from the original report (LanDinh) were already covered in test/test_postgress.py::test_postgress_quoted_names. The two cases reported afterwards (pro100filipp), which had caused the issue to be reopened, were not covered and now are:

  • SELECT "qouted" FROM foo — used to raise ValueError: Not supported query type!
  • select 'some string with quote " char' — a literal containing a " character used to break parsing

Both now parse correctly; the new tests pin that behavior.

Resolves #85.

Test plan

  • poetry run pytest test/test_postgress.py -vv — 3 passed
  • poetry run pytest -q --cov=sql_metadata --cov-report=term-missing — 269 passed, 100% coverage

@collerek collerek requested a review from macbre as a code owner May 8, 2026 08:03
@collerek collerek merged commit ccbde32 into master May 8, 2026
11 checks passed
@collerek collerek deleted the test/issue-85-regression branch May 8, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Postgres quoted identifiers

2 participants