改名
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user