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

fix some queries with columns beginning with limit would fail #349

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

kebhr
Copy link
Contributor

@kebhr kebhr commented Nov 23, 2022

#288 fixes a problem in which SQL involving columns whose names end in limit cannot be generated successfully.
However, this fix caused SQL containing columns starting with limit to fail to generate successfully (e.g. SELECT * FROM table WHERE limit_by > ?).
This is because the syntax interpretation compares it to limit when it should be compared to limit which includes white space.

I have created a fix for this problem and a test code that can confirm this issue.
With 4.050, modified t/35limit.t fails, but when this pull request is applied, it succeeds.

@dveeden dveeden self-requested a review August 23, 2023 15:42
@dveeden dveeden self-assigned this Aug 23, 2023
pali added a commit to pali/DBD-MariaDB that referenced this pull request Sep 8, 2023
Tests are modified from the pull request perl5-dbi/DBD-mysql#349 done by kebhr.
@kebhr
Copy link
Contributor Author

kebhr commented Aug 16, 2024

@dveeden Hello. Could you please take a look at this pull-request when you have a moment?

@dveeden dveeden added this to the 5.009 milestone Aug 16, 2024
@mohawk2
Copy link
Contributor

mohawk2 commented Sep 18, 2024

This seems ripe for merging - it has tests for the additional behaviour?

@dveeden dveeden merged commit bb15d9b into perl5-dbi:master Sep 19, 2024
@kebhr kebhr deleted the fix/limit_prefix branch September 21, 2024 06:57
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