Skip to content
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

Mysql (PDO) Driver Limit Error #6232

Closed
bcordis opened this issue Feb 28, 2015 · 7 comments
Closed

Mysql (PDO) Driver Limit Error #6232

bcordis opened this issue Feb 28, 2015 · 7 comments

Comments

@bcordis
Copy link
Contributor

bcordis commented Feb 28, 2015

Steps to reproduce the issue

When trying to set the limit on setQuery($items, 0, 5) no effect.

Expected result

Results should be limited to 5

Actual result

Unlimited results

System information (as much as possible)

Setting Value

PHP Built On Linux ps20763 3.1.9-vs2.3.2.5vs2.3.2.5+ #3 SMP Wed Feb 12 13:51:29 PST 2014 x86_64
Database Version 5.1.56-log
Database Collation utf8_general_ci
PHP Version 5.4.37
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.4.0 Stable [ Ember ] 24-February-2015 23:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.74 Safari/537.36

Additional comments

@bcordis
Copy link
Contributor Author

bcordis commented Feb 28, 2015

Update info for error.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6232.

@bcordis
Copy link
Contributor Author

bcordis commented Feb 28, 2015

$db->setQuery() limit has no affect under the PDO driver but works on mysqli

@PhilETaylor

This comment was marked as abuse.

@mbabker
Copy link
Contributor

mbabker commented Feb 28, 2015

From what I could tell without actually testing, it's because of the handling in JDatabaseDriverPdo::setQuery() that manipulates the query before passing up to the parent JDatabaseDriver::setQuery(). Unrelated to this issue, there appears to be a strict standards issue in the first method I described due to the extended method signature.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@brianteeman
Copy link
Contributor

Closed as we have a Pr - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants