改进Query类的selectInsert方法 对 table参数的处理

This commit is contained in:
thinkphp
2016-06-14 08:37:14 +08:00
parent 87a3c5577c
commit 9bfeeb8ac6

View File

@@ -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语句