We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01a82c2 commit bc5a6a4Copy full SHA for bc5a6a4
src/main/java/net/sf/jsqlparser/parser/CCJSqlParserUtil.java
@@ -85,6 +85,21 @@ public static Expression parseExpression(String expression) throws JSQLParserExc
85
}
86
87
88
+ /**
89
+ * Parse an conditional expression. This is the expression after a where clause.
90
+ * @param condExpr
91
+ * @return
92
+ * @throws JSQLParserException
93
+ */
94
+ public static Expression parseCondExpression(String condExpr) throws JSQLParserException {
95
+ CCJSqlParser parser = new CCJSqlParser(new StringReader(condExpr));
96
+ try {
97
+ return parser.Expression();
98
+ } catch (Exception ex) {
99
+ throw new JSQLParserException(ex);
100
+ }
101
102
+
103
/**
104
* Parse a statement list.
105
*/
0 commit comments