mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
改进Query类join方法对子查询支持
This commit is contained in:
@@ -674,7 +674,7 @@ class Query
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$table = trim($join);
|
$table = trim($join);
|
||||||
if (strpos($table, ' ')) {
|
if (strpos($table, ' ') && !strpos($table, ')')) {
|
||||||
list($table, $alias) = explode(' ', $table);
|
list($table, $alias) = explode(' ', $table);
|
||||||
$table = [$table => $alias];
|
$table = [$table => $alias];
|
||||||
$this->alias($table);
|
$this->alias($table);
|
||||||
|
|||||||
Reference in New Issue
Block a user