void profile(){ count(query); }
/** * subquery is compiled using a new compiler to get fresh new nodes to * prevent type inference on nodes between outer and sub queries */ Query compileQuery(ASTQuery ast) { // new Compiler save = compiler; compiler = fac.newInstance(); compiler.setAST(ast); Query q = compile(ast); subQueryList.add(q); // complete select, order by, group by complete(q, ast); having(q, ast); // bind is compiled as subquery q.setBind(ast.isBind()); q.setRelax(ast.isMore()); new QueryProfile(q).profile(); if (save != null) { compiler = save; } return q; }
/** * subquery is compiled using a new compiler to get fresh new nodes to * prevent type inference on nodes between outer and sub queries */ Query compileQuery(ASTQuery ast) { // new Compiler save = compiler; compiler = fac.newInstance(); compiler.setAST(ast); Query q = compile(ast); subQueryList.add(q); // complete select, order by, group by complete(q, ast); having(q, ast); // bind is compiled as subquery q.setBind(ast.isBind()); q.setRelax(ast.isMore()); new QueryProfile(q).profile(); if (save != null) { compiler = save; } return q; }
void profile(){ count(query); }
new QueryProfile(q).profile();