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

[SQL Anywhere] Fix query limit values "0" and "null" #3378

Merged
merged 1 commit into from
Dec 5, 2018

Conversation

deeky666
Copy link
Member

@deeky666 deeky666 commented Dec 4, 2018

Q A
Type bug
BC Break no
Fixed issues n/a

Summary

Integration tests on SQL Anywhere revealed that the platform doesn't handle $limit = null when rewriting SELECT statements for LIMIT/OFFSET.
Also handling of $limit = 0 was wrong as it was selecting ALL results instead of NONE.

Reference: http://dcx.sybase.com/1200/en/dbreference/select-statement.html

@deeky666 deeky666 force-pushed the fix-sasql-offset-without-limit branch from b581e4a to ec7b600 Compare December 4, 2018 17:53
@deeky666
Copy link
Member Author

deeky666 commented Dec 4, 2018

@Ocramius done

@deeky666 deeky666 force-pushed the fix-sasql-offset-without-limit branch from ec7b600 to 0f60b8f Compare December 4, 2018 19:17
@deeky666 deeky666 force-pushed the fix-sasql-offset-without-limit branch from 0f60b8f to 6304d85 Compare December 4, 2018 19:39
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@morozov assigning to you to do the backporting dance, if you have time

@morozov morozov merged commit 5a192cc into doctrine:master Dec 5, 2018
morozov added a commit that referenced this pull request Dec 5, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants