From 008e6abababf8e4efe9c8bde8f29d0a755d5515e Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 6 Jul 2026 21:20:58 +0800 Subject: [PATCH] eee --- Command.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Command.php b/Command.php index c11a6dd..8193ac9 100644 --- a/Command.php +++ b/Command.php @@ -182,13 +182,12 @@ class Command extends Component } - var_dump($this->sql, $this->params); - - if ($prepare->execute($this->params) === false) { - var_dump($prepare->errorInfo()); + if (($execute = $prepare->execute($this->params)) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); } + var_dump($execute); + $prepare->closeCursor(); $result = $client->lastInsertId();