From 9bfeeb8ac695a2f0211b8255bbd4b38c65013794 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 14 Jun 2016 08:37:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84select?= =?UTF-8?q?Insert=E6=96=B9=E6=B3=95=20=E5=AF=B9=20table=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E5=A4=84=E7=90=86?= 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 977cdc4c..1eb3f722 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1602,6 +1602,7 @@ class Query // 分析查询表达式 $options = $this->parseExpress(); // 生成SQL语句 + $table = $this->parseSqlTable($table); $sql = $this->builder()->selectInsert($fields, $table, $options); if($options['fetch_sql']){ // 获取实际执行的SQL语句