DB_DataObject::limit() problem
| From: | Demian Turner | Date: | Wed, 06 Aug 2003 12:50:39 +0000 |
| Subject: | DB_DataObject::limit() problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7047@lists.php.net to get a copy of this message | ||
Hi all
using the latest version of DB_DataObject 1.0.2 my limit queries are failing. The method's logic:
// check input...= 0 or ' ' == error!if (!is_int($a) && (($b !== null) && !is_int($b))) {
return DB_DataObject::raiseError("limit: No Valid Arguments", DB_DATAOBJECT_ERROR_INVALIDARGS);
}
evaluates to true and returns an error for what i believe is a valid limit such as 20,10
[LIMIT [offset,]howmany>]
SELECT id, username FROM users WHERE id <> 1 LIMIT 20,10
is this a mysql/pgsql compat issue ?
cheers
Demian