mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Model类save方法对oracle的支持
This commit is contained in:
@@ -1103,9 +1103,9 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
|||||||
// 检测字段
|
// 检测字段
|
||||||
$allowFields = $this->checkAllowField(array_merge($this->auto, $this->insert));
|
$allowFields = $this->checkAllowField(array_merge($this->auto, $this->insert));
|
||||||
if (!empty($allowFields)) {
|
if (!empty($allowFields)) {
|
||||||
$result = $this->getQuery()->strict(false)->field($allowFields)->insert($this->data);
|
$result = $this->getQuery()->strict(false)->field($allowFields)->insert($this->data, false, false, $sequence);
|
||||||
} else {
|
} else {
|
||||||
$result = $this->getQuery()->insert($this->data);
|
$result = $this->getQuery()->insert($this->data, false, false, $sequence);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取自动增长主键
|
// 获取自动增长主键
|
||||||
|
|||||||
Reference in New Issue
Block a user