mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
修正子查询作为表名查询的问题
This commit is contained in:
@@ -1449,6 +1449,11 @@ class Query
|
||||
$tableName = $this->parseSqlTable($tableName);
|
||||
}
|
||||
|
||||
// 修正子查询作为表名的问题
|
||||
if (strpos($tableName, ')')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
list($guid) = explode(' ', $tableName);
|
||||
$db = $this->getConfig('database');
|
||||
if (!isset(self::$info[$db . '.' . $guid])) {
|
||||
|
||||
Reference in New Issue
Block a user