Browse Source

Not changing to NULL strings.

Juan Basso 15 years ago
parent
commit
a744a74f1e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Model/Datasource/Database/Sqlserver.php

+ 1 - 1
lib/Cake/Model/Datasource/Database/Sqlserver.php

@@ -241,7 +241,7 @@ class Sqlserver extends DboSource {
 		if ($column === 'float' && strpos($data, '.') !== false) {
 			return rtrim($data, '0');
 		}
-		if ($parent === "''") {
+		if ($parent === "''" && ($column === null || $column !== 'string')) {
 			return 'NULL';
 		}
 		if ($parent != null) {