From 2170ea7d2959934fb26ccea574ea3078de0daa98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 7 Apr 2023 21:23:38 +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 04536af..df938cf 100644 --- a/Command.php +++ b/Command.php @@ -97,7 +97,7 @@ class Command extends Component throw new Exception($client->errorInfo()[1]); } foreach ($this->params as $key => $param) { - $prepare->bindParam($key, $param, PDO::PARAM_STR | PDO::PARAM_INT); + $prepare->bindParam($key, $param); } return $prepare->fetch(PDO::FETCH_ASSOC); } catch (\Throwable $throwable) {