From ea4f7ba11a5f84902ea0668b6eedd06dfe3f67c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 10 Nov 2021 11:23:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Command.php | 1 + src/Mysql/PDO.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.php b/src/Command.php index e581903..8e93c9e 100644 --- a/src/Command.php +++ b/src/Command.php @@ -120,6 +120,7 @@ class Command extends Component $time = microtime(true); if ($type === static::EXECUTE) { $result = $this->db->getConnect($this->sql)->execute($this->sql,$this->params); + var_dump($this->sql,$this->params); } else { $result = $this->search($type); } diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index c4b76ec..f80e59b 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -250,7 +250,6 @@ class PDO implements StopHeartbeatCheck { $this->_last = time(); $pdo = $this->_pdo(); - var_dump($sql, $params); if (!(($prepare = $pdo->prepare($sql)) instanceof PDOStatement)) { throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); }