"Closes #3029, Model::updateAll not quoting strings"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6224 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-12-23 10:57:05 +00:00
parent c0bd6b4104
commit acc94e2fec

View file

@ -1250,17 +1250,7 @@ class DboSource extends DataSource {
}
foreach ($combined as $field => $value) {
if ($value === null) {
$updates[] = $this->name($field) . ' = NULL';
} else {
$update = $this->name($field) . ' = ';
if ($conditions == null) {
$update .= $this->value($value, $model->getColumnType($field));
} else {
$update .= $value;
}
$updates[] = $update;
}
$updates[] = $this->name($field) . ' = ' . $this->value($value, $model->getColumnType($field));
}
$conditions = $this->defaultConditions($model, $conditions);