Skip to content


DDC-1564: MySQL Failure when using setFirstResult() and omitting setMaxResults() #2200

doctrinebot opened this Issue · 1 comment

2 participants


Jira issue originally created by user felicitus:

When using setFirstResult() and omitting setMaxResults(), MySQL throws an error. This was very confusing for me until I dumped the SQL statements and found out the reason.

I know that MySQL doesn't directly support this, their manual says that you should set the second parameter to LIMIT to a very high number (18446744073709551615 in their example).

I'd recommend that either throwing an error in the specific platform driver or follow the MySQL example.


Comment created by @beberlei:

Changed into improvement, i am not sure how this relates to other databases.

You can just use this workaround yourself so long.

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.