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