Fixed OFFSET 0 which was interpreted as null and then ignored in SQL-query, causing a SQL-exception
This commit is contained in:
parent
f3d21a7563
commit
219a2c2064
@ -369,7 +369,7 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable {
|
|||||||
break;
|
break;
|
||||||
case 'limit':
|
case 'limit':
|
||||||
case 'offset':
|
case 'offset':
|
||||||
if($args[0] == null)
|
if($args[0] === null)
|
||||||
$args[0] = false;
|
$args[0] = false;
|
||||||
|
|
||||||
$this->parts[$name] = $args[0];
|
$this->parts[$name] = $args[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user