diff --git a/lib/Doctrine/Hydrate.php b/lib/Doctrine/Hydrate.php index 4928240d3..ed7367fba 100644 --- a/lib/Doctrine/Hydrate.php +++ b/lib/Doctrine/Hydrate.php @@ -682,6 +682,10 @@ class Doctrine_Hydrate implements Serializable } else { $stmt = $this->_execute($params, $return); + if (is_integer($stmt)) { + return $stmt; + } + $array = $this->parseData2($stmt, $return); } return $array;