From b2d9a22816cabadbefcce022d9af3e817849d57c Mon Sep 17 00:00:00 2001 From: lukenukem Date: Tue, 31 Jul 2007 05:50:41 +0000 Subject: [PATCH] OFFSET and LIMIT for PostgreSQL corrected. --- lib/Doctrine/Connection/Pgsql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Connection/Pgsql.php b/lib/Doctrine/Connection/Pgsql.php index a686ba944..71a2930fe 100644 --- a/lib/Doctrine/Connection/Pgsql.php +++ b/lib/Doctrine/Connection/Pgsql.php @@ -140,10 +140,10 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common . $from . ' ' . $where . ' LIMIT ' . $limit . ')'; } else { - if ($limit !== false) { + if ( ! empty($limit)) { $query .= ' LIMIT ' . $limit; } - if ($offset !== false) { + if ( ! empty($offset)) { $query .= ' OFFSET ' . $offset; } }