1
0
mirror of synced 2025-01-18 06:21:40 +03:00

OFFSET and LIMIT for PostgreSQL corrected.

This commit is contained in:
lukenukem 2007-07-31 05:50:41 +00:00
parent 2fe3e376e6
commit b2d9a22816

View File

@ -140,10 +140,10 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common
. $from . ' ' . $where . ' LIMIT ' . $limit . ')'; . $from . ' ' . $where . ' LIMIT ' . $limit . ')';
} else { } else {
if ($limit !== false) { if ( ! empty($limit)) {
$query .= ' LIMIT ' . $limit; $query .= ' LIMIT ' . $limit;
} }
if ($offset !== false) { if ( ! empty($offset)) {
$query .= ' OFFSET ' . $offset; $query .= ' OFFSET ' . $offset;
} }
} }