From 219a2c2064480c9d83e4899cdeedcffdf03272ca Mon Sep 17 00:00:00 2001 From: Tanken Date: Mon, 13 Nov 2006 07:33:51 +0000 Subject: [PATCH] Fixed OFFSET 0 which was interpreted as null and then ignored in SQL-query, causing a SQL-exception --- lib/Doctrine/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index 816cef7a0..33ed7e04d 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -369,7 +369,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { break; case 'limit': case 'offset': - if($args[0] == null) + if($args[0] === null) $args[0] = false; $this->parts[$name] = $args[0];