3.1.3 - 严重 - 未处理
// sql1 子查询 , sql2 为外层查询
// 出错,
$sql2=M($sql1->select(false) . 'as t');
// 正常
$sql2=M();
$sql2->table($sql1->select(false) . 'as t');比如sql1的语句为select a from b where c=d ;sql2语句为select e from (sql1子查询) as t where f=g order by h limit i;
出错时sql语句为:
select e from (select a from b where (c=d order by h limit i;
sql1 从where的右括号那个位置到最后的后半部分没了.
