Subject: | Incorrect quoting of parameter values in LIMIT clause |
When the SQL statement passed to execute() contains a LIMIT clause containing one or more placeholders (e.g. "LIMIT ?,?), the values are quoted (e.g. "LIMIT '0','10'").
This causes MySQL 5.0.16 to return an "incorrect syntax" error. Previous MySQL versions untested.
IMO the module should test for a LIMIT clause containing placeholders and ensure that the corresponding parameter values are not quoted.