Skip to content

Commit

Permalink
[pgsql]: Fixed boolean type conversion for non-boolean types
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/MDB2/trunk@326915 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
afz committed Aug 1, 2012
1 parent a5a0c8e commit c21f6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MDB2/Driver/Datatype/pgsql.php
Expand Up @@ -73,7 +73,7 @@ function _baseConvertResult($value, $type, $rtrim = true)
}
switch ($type) {
case 'boolean':
return $value == 't';
return ($value == 'f')? false : !empty($value);
case 'float':
return doubleval($value);
case 'date':
Expand Down

0 comments on commit c21f6e8

Please sign in to comment.