mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Resolving yet more problems with booleans in postgres
This commit is contained in:
parent
1acb619e75
commit
2ec9a49f17
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue