From 69648e33738bb9df30b30d36d5b47a6d53861c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 2 Apr 2023 01:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command.php b/Command.php index 89bdfa8..e956635 100644 --- a/Command.php +++ b/Command.php @@ -170,7 +170,7 @@ class Command extends Component { $pdo = $this->db->getSlaveClient(); try { - if (($statement = $pdo->prepare($this->sql)) === false) { + if (($statement = $pdo->query($this->sql)) === false) { throw new Exception($pdo->errorInfo()[1]); } foreach ($this->params as $key => $param) {