diff --git a/lib/Doctrine/Connection.php b/lib/Doctrine/Connection.php index 9ae939e9f..4f043a81d 100644 --- a/lib/Doctrine/Connection.php +++ b/lib/Doctrine/Connection.php @@ -228,7 +228,9 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun } } } else { - $item = (int) $item; + if (is_bool($item)) { + $item = (int) $item; + } } return $item; }