This commit is contained in:
2021-04-28 10:50:44 +08:00
parent e9ee0f8560
commit ae166c26c8
+2 -2
View File
@@ -171,10 +171,10 @@ class Command extends Component
/** /**
* @param $isInsert * @param $isInsert
* @param $hasAutoIncrement * @param $hasAutoIncrement
* @return bool|string * @return bool|string|int
* @throws Exception * @throws Exception
*/ */
private function insert_or_change($isInsert, $hasAutoIncrement): bool|string private function insert_or_change($isInsert, $hasAutoIncrement): bool|string|int
{ {
if (!($result = $this->initPDOStatement())) { if (!($result = $this->initPDOStatement())) {
return $result; return $result;