Browse files

Not changing to NULL strings.

  • Loading branch information...
1 parent 0ae9974 commit a744a74f1e86442aa9db65aedbe93930f1e87be0 @jrbasso jrbasso committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Sqlserver.php
View
2 lib/Cake/Model/Datasource/Database/Sqlserver.php
@@ -241,7 +241,7 @@ public function value($data, $column = null, $safe = false) {
if ($column === 'float' && strpos($data, '.') !== false) {
return rtrim($data, '0');
}
- if ($parent === "''") {
+ if ($parent === "''" && ($column === null || $column !== 'string')) {
return 'NULL';
}
if ($parent != null) {

0 comments on commit a744a74

Please sign in to comment.