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

Fixes to tablename being parsed from query #19

Merged
merged 1 commit into from
Feb 18, 2022
Merged

Conversation

joewagner
Copy link
Contributor

@joewagner joewagner commented Feb 18, 2022

Queries like:
INSERT INTO "Test_1" (colname) Values ('val6');
INSERT INTO test_1(colname) Values ('val6');

were not being permitted because of the regex check for table id

Copy link
Contributor

@awmuncy awmuncy left a comment

Choose a reason for hiding this comment

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

This looks good. The overhead of this change also lends weight to @carsonfarmer's suggestion that we not do any validation of their query SDK side.

@joewagner
Copy link
Contributor Author

The overhead of this change also lends weight to @carsonfarmer's suggestion that we not do any validation of their query SDK side.

Yeah, it's starting to feel like the RegExp is getting unwieldy. Maybe we want to remove that check entirely?

@awmuncy
Copy link
Contributor

awmuncy commented Feb 18, 2022

The overhead of this change also lends weight to @carsonfarmer's suggestion that we not do any validation of their query SDK side.

Yeah, it's starting to feel like the RegExp is getting unwieldy. Maybe we want to remove that check entirely?

No objections, I think it's probably a good idea.

@awmuncy awmuncy merged commit 20b7031 into main Feb 18, 2022
@joewagner joewagner deleted the joe/query-parse branch February 23, 2022 01:45
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.

None yet

2 participants