mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
优化query类的insert方法
This commit is contained in:
@@ -2080,7 +2080,7 @@ class Query
|
||||
}
|
||||
|
||||
// 执行操作
|
||||
$result = $this->execute($sql, $bind);
|
||||
$result = 0 === $sql ? 0 : $this->execute($sql, $bind);
|
||||
if ($result) {
|
||||
$sequence = $sequence ?: (isset($options['sequence']) ? $options['sequence'] : null);
|
||||
$lastInsId = $this->getLastInsID($sequence);
|
||||
|
||||
Reference in New Issue
Block a user