From 0bff75446dad1eb28b88990e426da6faaa926bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 31 Aug 2023 12:29:02 +0800 Subject: [PATCH] eee --- Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command.php b/Command.php index c325e55..1fa74fa 100644 --- a/Command.php +++ b/Command.php @@ -147,7 +147,7 @@ class Command extends Component try { $client = $this->connection->getConnection(); if (($prepare = $client->prepare($this->sql)) === false) { - throw new Exception($client->errorInfo()[1]); + throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]); } if ($prepare->execute($this->params) === false) { throw new Exception('(' . $prepare->errorInfo()[0] . ')' . $prepare->errorInfo()[2]);