Resolving yet more problems with booleans in postgres

This commit is contained in:
José Lorenzo Rodríguez 2010-10-24 20:01:33 -04:30
parent 1acb619e75
commit 2ec9a49f17

View file

@ -728,14 +728,14 @@ class DboPostgres extends DboSource {
case ($data === 'TRUE' || $data === 'FALSE'):
$result = ($data === 'TRUE');
default:
$result = (bool)$data;
$result = (bool) $data;
break;
}
if ($quote) {
$result = ($result) ? 'TRUE' : 'FALSE';
}
return $result;
return (int) $result;
}
/**