This commit is contained in:
2021-02-25 18:06:41 +08:00
parent 3c4a30473a
commit 85c6b53004
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ class ActiveRecord extends BaseActiveRecord
if (is_bool($create)) {
return false;
}
return static::getDb()->createCommand($create)->exec();
return static::getDb()->createCommand($create[0], $create[1])->exec();
}
+1 -1
View File
@@ -51,7 +51,7 @@ class SqlBuilder extends Component
public function update(array $attributes): bool|array
{
[$string, $array] = $this->builderParams($attributes);
if (empty($string)) {
if (empty($string) || empty($array)) {
return $this->addError('None data update.');
}