-
Notifications
You must be signed in to change notification settings - Fork 103
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
Limit is treated as a string #166
Comments
Any updates regarding this matter? |
I'll take a look this week. Please bug me if I don' get back to you by Friday. |
Can you provide code to duplicate the issue. |
Sure, but it is nothing special: $result = $this->database
->select()
->from('table-name')
->limit(5)
->execute(); Results in:
Probably because executing the statement while passing parameters will treat them as:
While the limit should be an integer. |
I am not sure how you did this, I cannot duplicate the issue with MariaDB 10.2. Do you have a specific database configuration that is causing this error? I am going to need a lot more info about how this is happening.
|
I figured it out... somehow you've managed to enable |
You can try this patch, I am not sure this wont cause other interesting side effects with decimal or enum types.
|
As the statement is executed as
$stmt->execute($this->getValues())
, any integers will be added to the parameters as strings. This results in an SQL-error for LIMIT, as this needs to be an integer.The text was updated successfully, but these errors were encountered: