改名
This commit is contained in:
+1
-2
@@ -43,7 +43,6 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
public array $attributes = [];
|
public array $attributes = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Comply constructor.
|
* Comply constructor.
|
||||||
* @param $model
|
* @param $model
|
||||||
@@ -270,7 +269,7 @@ class ActiveQuery extends Component implements ISqlBuilder
|
|||||||
[$sql, $params] = $this->builder->insert($data, true);
|
[$sql, $params] = $this->builder->insert($data, true);
|
||||||
|
|
||||||
|
|
||||||
return $this->execute($sql, $params)->exec();
|
return $this->execute($sql, $params)->exec(null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -168,6 +168,7 @@ class Command extends Component
|
|||||||
{
|
{
|
||||||
$pdo = $this->db->getConnect($this->sql);
|
$pdo = $this->db->getConnect($this->sql);
|
||||||
$result = $pdo->execute($this->sql, $isInsert, $this->params);
|
$result = $pdo->execute($this->sql, $isInsert, $this->params);
|
||||||
|
var_dump($result);
|
||||||
if ($hasAutoIncrement && $result == 0) {
|
if ($hasAutoIncrement && $result == 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user