Pull Request for Issue #10108
(Its a PR against the request at #10138)
Summary of Changes
While adding support for limitable interface.The checking of query objects type should be consistent.
Testing Instructions
extend a sample class MyQuery from JDatabaseQuery.
Use a simple select statement on $query = new MyQuery(); $query->select('user_id'); $query->where("1"); $query->limit(5,10); $results = JFactory::getDbo()->setQuery($query)->loadAssoclist();
Should get limited records.
All drivers need to be checked for this. Just at a quick glance the abstract PDO driver and legacy MySQL driver has the same type of check.