PostgreSQL no longer supports the use of 'LIMIT #,#' in SQL queries. The PostgreSQL backend for the PEAR database abstraction layer needs to be updated to this extend. Gentoo installs PostgreSQL 7.3.2 (at the time of this writing). As such, this might break many PHP applications. As a quick fix, change the function 'modifyLimitQuery' of '/usr/lib/php/DB/pgsql.php': $query = $query . " LIMIT $count OFFSET $from"; Reproducible: Always Steps to Reproduce: 1. 2. 3.
is this bug still valid?
no response from user, closing bug.