改名
This commit is contained in:
@@ -129,6 +129,7 @@ class Command extends Component
|
|||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
|
$result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
|
||||||
} finally {
|
} finally {
|
||||||
|
var_dump($result);
|
||||||
$this->db->release();
|
$this->db->release();
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -257,9 +257,6 @@ class PDO implements StopHeartbeatCheck
|
|||||||
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
|
throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE);
|
||||||
}
|
}
|
||||||
$result = (int)$pdo->lastInsertId();
|
$result = (int)$pdo->lastInsertId();
|
||||||
|
|
||||||
var_dump($result);
|
|
||||||
|
|
||||||
$prepare->closeCursor();
|
$prepare->closeCursor();
|
||||||
if ($result == 0) {
|
if ($result == 0) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user