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 OFFSET without LIMIT cause MySQL syntax error. #261

Closed
wants to merge 7 commits into from

Conversation

Everus
Copy link
Contributor

@Everus Everus commented Jan 29, 2013

MySQL OFFSET require LIMIT.
So fixed it to use the biggest limit possible as it recommended in http://dev.mysql.com/doc/refman/5.0/en/select.html#id4651990

@doctrinebot
Copy link

Hello,

thank you for positing this Pull Request. I have automatically opened an issue on our Jira Bug Tracker for you with the details of this Pull-Request. See the Link:

http://doctrine-project.org/jira/browse/DBAL-431

@Ocramius
Copy link
Member

@Everus what's the failing test case for this one?

@stof
Copy link
Member

stof commented Jan 29, 2013

This is wrong. It does not add the offset anymore when the limit is not null

@Everus
Copy link
Contributor Author

Everus commented Jan 31, 2013

I can't see what wrong in it, maybe you can point me in right direction.

@stof
Copy link
Member

stof commented Jan 31, 2013

hmm, sorry.

However, as this fix is only for MySQL, I think it should be done in the MySQLPlatform only

@beberlei
Copy link
Member

Fixed in 3f220a1

@beberlei beberlei closed this Apr 14, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants