Fixed the tests for value.

This commit is contained in:
Juan Basso 2011-04-28 22:12:07 -04:00
parent 24bf56b44e
commit 3231755d63

View file

@ -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;
}