仿照JBOSS实现PreparedStatementCache

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@912 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-28 14:20:00 +00:00
parent a7f4299a4b
commit 9dff400ff6
16 changed files with 832 additions and 205 deletions
@@ -115,7 +115,7 @@ public class SQLExprParser extends SQLParser {
}
public final SQLExpr multiplicative() throws ParserException {
SQLExpr expr = bitXor();
SQLExpr expr = primary();
return multiplicativeRest(expr);
}
@@ -673,7 +673,7 @@ public class SQLExprParser extends SQLParser {
}
public final SQLExpr equality() throws ParserException {
SQLExpr expr = bitOr();
SQLExpr expr = shift();
return equalityRest(expr);
}
@@ -681,14 +681,14 @@ public class SQLExprParser extends SQLParser {
SQLExpr rightExp;
if (lexer.token() == Token.EQ) {
lexer.nextToken();
rightExp = bitOr();
rightExp = shift();
rightExp = equalityRest(rightExp);
expr = new SQLBinaryOpExpr(expr, SQLBinaryOperator.Equality, rightExp);
} else if (lexer.token() == Token.BANGEQ) {
lexer.nextToken();
rightExp = bitOr();
rightExp = shift();
rightExp = equalityRest(rightExp);