mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
refs #8027 combine if statements
This commit is contained in:
parent
3ca3ffeeee
commit
c05835d85d
1 changed files with 2 additions and 4 deletions
|
@ -934,11 +934,9 @@ class Postgres extends DboSource {
|
||||||
*/
|
*/
|
||||||
public function value($data, $column = null, $null = true) {
|
public function value($data, $column = null, $null = true) {
|
||||||
$value = parent::value($data, $column, $null);
|
$value = parent::value($data, $column, $null);
|
||||||
if ($column === 'uuid' && is_scalar($data)) {
|
if ($column === 'uuid' && is_scalar($data) && $data === '') {
|
||||||
if ($data === '') {
|
|
||||||
return 'NULL';
|
return 'NULL';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue