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 using clause of delete statement #234

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

Tassosb
Copy link
Contributor

@Tassosb Tassosb commented Nov 11, 2021

No description provided.

Comment on lines +1543 to +1544
expect(query.tables).to eq(['users', 'users_new', 'join_table'])
expect(query.select_tables).to eq(['users_new', 'join_table'])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This spec change is unrelated to the main change of the PR. I think the spec as written in this branch would have failed in a slightly older version of the code but now it is passing.

Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

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

Would it work using upper-case SQL strings?

spec/lib/parse_spec.rb Outdated Show resolved Hide resolved
spec/lib/parse_spec.rb Outdated Show resolved Hide resolved
spec/lib/parse_spec.rb Outdated Show resolved Hide resolved
Tassosb and others added 2 commits November 12, 2021 10:20
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
Uppercase SQL in new specs

Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
@lfittl lfittl merged commit 71ed4e8 into pganalyze:main Nov 12, 2021
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.

3 participants