1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Fixed OFFSET 0 which was interpreted as null and then ignored in SQL-query, causing a SQL-exception

This commit is contained in:
Tanken 2006-11-13 07:33:51 +00:00
parent f3d21a7563
commit 219a2c2064

View File

@ -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];