* [misc,0.5h] check funcs before check select.

This commit is contained in:
qixinzhi
2024-09-04 16:10:43 +08:00
committed by 代婷婷
parent 09f8958c62
commit 3e8287b52b
+3 -1
View File
@@ -422,7 +422,7 @@ class pivotState
*/
public function checkSqlBuilder()
{
$checkList = array('checkFrom', 'checkJoins', 'checkSelects', 'checkFuncs', 'checkWheres', 'checkQuerys');
$checkList = array('checkFrom', 'checkJoins', 'checkSelects', 'checkWheres', 'checkQuerys');
foreach($checkList as $check) if(!$this->$check()) return false;
return true;
}
@@ -474,6 +474,8 @@ class pivotState
*/
public function checkSelects()
{
if($this->checkFuncs()) return true;
$builder = $this->sqlBuilder;
$from = $builder['from'];
$joins = $builder['joins'];