From a13eb10116daa4ebfaa2133bd6757deb57a3634e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 21 Jan 2017 14:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=86=99=E5=85=A5=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E8=87=AA=E5=8A=A8=E5=8F=82=E6=95=B0=E7=BB=91?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Builder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index b9683969..380fe239 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -112,8 +112,8 @@ abstract class Builder $result[$item] = $val; } else { $key = str_replace('.', '_', $key); - $this->query->bind($key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR); - $result[$item] = ':' . $key; + $this->query->bind('__data__' . $key, $val, isset($bind[$key]) ? $bind[$key] : PDO::PARAM_STR); + $result[$item] = ':__data__' . $key; } } elseif (is_object($val) && method_exists($val, '__toString')) { // 对象数据写入