Skip to content

Add support for TABLE command in Postgresql#2364

Open
yanghykevin wants to merge 1 commit into
apache:mainfrom
yanghykevin:table-command
Open

Add support for TABLE command in Postgresql#2364
yanghykevin wants to merge 1 commit into
apache:mainfrom
yanghykevin:table-command

Conversation

@yanghykevin
Copy link
Copy Markdown

Hi all. We're an AWS team using sqlparser-rs for MySQL/PG parsing and plan to contribute a series of dialect compatibility improvements. Happy to coordinate on approach.

Change Description:

This closes Issue: #742

Grammar: https://www.postgresql.org/docs/current/sql-select.html#SQL-TABLE

);

for sql in [
"TABLE films WHERE x > 0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be interesting to test: TABLE db.schema.table is rejected.

Comment thread tests/sqlparser_common.rs
dialects.verified_stmt("TABLE films");
// Schema-qualified.
dialects.verified_stmt("TABLE myschema.films");
// Database-qualified (three-part name).
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for MySQL, not PostgreSQL, right ? Maybe a subtle overlap with another PR to come for MySQL ?

@c2main
Copy link
Copy Markdown

c2main commented Jun 6, 2026

Hi all. We're an AWS team using sqlparser-rs for MySQL/PG parsing and plan to contribute a series of dialect compatibility improvements. Happy to coordinate on approach.

Hi. FYI, we have similar plan at Data Bene for Oracle/PG.

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.

2 participants