This commit is contained in:
2021-02-25 16:46:42 +08:00
parent 7a432f3401
commit e03079866b
+1 -3
View File
@@ -44,9 +44,7 @@ class SqlBuilder extends Component
return $this->addError('None data update.'); return $this->addError('None data update.');
} }
var_dump($string); $update = 'UPDATE ' . $this->tableName() . ' SET ' . implode(',', $string) . $this->conditionToString();
$update = 'UPDATE ' . $this->tableName() . ' SET ' . $string . $this->conditionToString();
$update .= $this->builderLimit($this->query); $update .= $this->builderLimit($this->query);
return [$update, $array]; return [$update, $array];