mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixed the tests for value.
This commit is contained in:
parent
24bf56b44e
commit
3231755d63
1 changed files with 6 additions and 0 deletions
|
@ -232,6 +232,12 @@ class Mssql extends DboSource {
|
|||
function value($data, $column = null, $safe = false) {
|
||||
$parent = parent::value($data, $column, $safe);
|
||||
|
||||
if ($column === 'float' && strpos($data, '.') !== false) {
|
||||
return rtrim($data, '0');
|
||||
}
|
||||
if ($parent === "''") {
|
||||
return 'NULL';
|
||||
}
|
||||
if ($parent != null) {
|
||||
return $parent;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue