mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-20 08:29:55 +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'):
|
case ($data === 'TRUE' || $data === 'FALSE'):
|
||||||
$result = ($data === 'TRUE');
|
$result = ($data === 'TRUE');
|
||||||
default:
|
default:
|
||||||
$result = (bool)$data;
|
$result = (bool) $data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($quote) {
|
if ($quote) {
|
||||||
$result = ($result) ? 'TRUE' : 'FALSE';
|
$result = ($result) ? 'TRUE' : 'FALSE';
|
||||||
}
|
}
|
||||||
return $result;
|
return (int) $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue