From fc0c563706fe421bb79d032fc54a835b75351beb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 7 Sep 2016 11:52:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84gettab?= =?UTF-8?q?leinfo=E6=96=B9=E6=B3=95?= 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 838f7ac3..ef403afd 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1372,7 +1372,7 @@ class Query $tableName = $this->parseSqlTable($tableName); } - $guid = $tableName; + list($guid) = explode(' ', $tableName); if (!isset(self::$info[$guid])) { $info = $this->connection->getFields($tableName); $fields = array_keys($info);