#23031 [NEW]: limitQuery doesn't work with PostgreSQL
| From: | kristof dot nast-kolb at foroso dot de | Date: | Thu, 03 Apr 2003 09:23:47 +0000 |
| Subject: | #23031 [NEW]: limitQuery doesn't work with PostgreSQL | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14840@lists.php.net to get a copy of this message | ||
From: kristof dot nast-kolb at foroso dot de
Operating system: linux
PHP version: 4.3.2RC1
PHP Bug Type: PEAR related
Bug description: limitQuery doesn't work with PostgreSQL
limitQuery must use the OFFSET parameter instead of COUNT offset, count in
pgsql. so correct would be:
function modifyLimitQuery($query, $from, $count)
{
$query = $query . " LIMIT $count OFFSET $from";
}
in DB/pgsql.php
Tested with postgresql 7.2.3
--
Edit bug report at http://bugs.php.net/?id=23031&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23031&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23031&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23031&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23031&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23031&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23031&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23031&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23031&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23031&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23031&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23031&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23031&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23031&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23031&r=gnused