You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default parameter type is string, that's why the values get quoted.
it should be able to detect this in my opinion.
No. The binding type shouldn't be inferred from the input, it should be defined by the query and be static. The default is string.
If you want to build the LIMIT query manually, you should use parameter types. Otherwise, you may consider using QueryBuilder#setMaxResults() and QueryBuilder#setFirstResult() instead:
Bug Report
pdo_mysql driver
Summary
Double quotes parameters in LIMIT and OFFSET
Current behavior
MySQL query like the following:
Throws an exception. It appears the SQL is being run as:
My temporary fix was not to use parameters in the limit or offset, but shouldn't this be supported?
Expected behavior
The parameters passed in to the executeQuery functions are int parameters. I wouldn't expect them to be treated as strings.
This is what I'd expect the SQL to be.
The text was updated successfully, but these errors were encountered: