From ac7eafe9e8ef9c6355356e78cdbd9acb8738ddac Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 2 Feb 2016 00:03:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3\think\db\Driver=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E5=8F=AF=E8=83=BD=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Driver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Driver.php b/library/think/db/Driver.php index aaddc795..847fe9ec 100644 --- a/library/think/db/Driver.php +++ b/library/think/db/Driver.php @@ -15,9 +15,9 @@ use PDO; use think\Config; use think\Db; use think\Debug; +use think\exception\DbBindParamException; use think\exception\DbException; use think\exception\PDOException; -use think\exception\DbBindParamException; use think\Log; abstract class Driver @@ -266,7 +266,7 @@ abstract class Driver // 判断占位符 $sql = is_numeric($key) ? substr_replace($sql, $val, strpos($sql, '?'), 1) : - str_replace(':' . $key . ' ', $val . ' ', $sql); + str_replace(':' . $key . ' ', $val . ' ', $sql . ' '); } } return $sql;