From ad48ec693f3a866ad5cc2da57bc2b98656b74808 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 4 Sep 2017 11:29:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84connec?= =?UTF-8?q?t=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index a5072fc8..ceb3d500 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -115,6 +115,7 @@ class Query { $this->connection = Db::connect($config); $this->setBuilder(); + $this->prefix = $this->connection->getConfig('prefix'); return $this; }