diff --git a/lib/Doctrine/Connection/Pgsql.php b/lib/Doctrine/Connection/Pgsql.php index bc8fe291e..a686ba944 100644 --- a/lib/Doctrine/Connection/Pgsql.php +++ b/lib/Doctrine/Connection/Pgsql.php @@ -103,10 +103,14 @@ class Doctrine_Connection_Pgsql extends Doctrine_Connection_Common { if (is_array($item)) { foreach ($item as $key => $value) { - $item[$key] = ($value) ? 'true' : 'false'; + if (is_bool($value)) { + $item[$key] = ($value) ? 'true' : 'false'; + } } } else { - $item = ($item) ? 'true' : 'false'; + if (is_bool($item)) { + $item = ($item) ? 'true' : 'false'; + } } return $item; }