Closed John71-Off closed 3 years ago
Using LIMIT a OFFSET b on \FaaPz\PDO\Clause\Limit#__toString that is the generic Limit syntax instead of LIMIT a, b which is only for MySQL
LIMIT a OFFSET b
\FaaPz\PDO\Clause\Limit#__toString
LIMIT a, b
(You can take for reference the sql.sh website or this other one: https://www.sqltutorial.org/sql-limit/)
Thank you !
Hi @JohnProgrammer71,
The change should be ok, can you fix the failing tests?
Thanks.
https://github.com/FaaPz/PDO/blob/2.x/tests/Statement/SelectTest.php#L161
I am pulling this in with PR #153 due to the tests still failing on this PR.
Using
LIMIT a OFFSET b
on\FaaPz\PDO\Clause\Limit#__toString
that is the generic Limit syntax instead ofLIMIT a, b
which is only for MySQL(You can take for reference the sql.sh website or this other one: https://www.sqltutorial.org/sql-limit/)
Thank you !