Skip to content
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

Find tables in the subquery of CREATE TABLE AS #172

Conversation

Tassosb
Copy link
Contributor

@Tassosb Tassosb commented May 27, 2020

Problem

Tables in the subselect of CREATE TABLE .. AS statements are not included in the *tables methods.

Example:

PgQuery.parse("CREATE TABLE foo AS SELECT * FROM bar").tables
Expected: ["foo", "bar"]
Actual: ["foo"]

@lfittl lfittl merged commit 7557365 into pganalyze:master May 31, 2020
@lfittl
Copy link
Member

lfittl commented May 31, 2020

Thanks for the contribution!

@Tassosb Tassosb deleted the parse-create-table-as-select-tables branch February 24, 2021 20:48
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