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
{{ message }}
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
I'm using zend-db 2.1.5 with a mySQL database via PDO.
If you pass the parameters (to limit, offset) as a string the values are quoted and an InvalidQueryException is thrown but if you pass in (or cast to) an int it works correctly.
Strangely if you use the Sql::getSqlStringForSqlObject method the generated query is correct (the values are not quoted).
Testcase:
$table = new TableGateway('some_table', $this->adapter);
$select = $table->getSql()->select();
$select->limit('25');
$select->offset('1');
$table->selectWith($select); // Exception is thrown here
I'm using zend-db 2.1.5 with a mySQL database via PDO.
If you pass the parameters (to limit, offset) as a string the values are quoted and an
InvalidQueryExceptionis thrown but if you pass in (or cast to) an int it works correctly.Strangely if you use the
Sql::getSqlStringForSqlObjectmethod the generated query is correct (the values are not quoted).Testcase: