From 4d513f3c62cdce050d3d57e19cb950e72ec8202c Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 8 Feb 2018 15:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=9F=A5=E8=AF=A2=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index d425d78a..e53cdacb 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2424,7 +2424,7 @@ class Query $data = $value[1]; } if (isset($data)) { - return 'think:' . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data; + return 'think:' . $this->connection->getConfig('database') . '.' . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data; } else { return md5(serialize($options) . serialize($bind)); }