Skip to content

Commit 9ca4f3e

Browse files
committed
rewind #910
1 parent ebac9db commit 9ca4f3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,7 @@ IntervalExpression IntervalExpression() : {
31023102
{
31033103

31043104
{ interval = new IntervalExpression(); }
3105-
<K_INTERVAL> ["-" {signed=true;}] (token=<S_LONG> | token=<S_DOUBLE> | token=<S_CHAR_LITERAL> | expr = SimpleExpression())
3105+
<K_INTERVAL> ["-" {signed=true;}] (token=<S_LONG> | token=<S_DOUBLE> | token=<S_CHAR_LITERAL> | expr = Column())
31063106
{
31073107
if (expr != null) {
31083108
if (signed) expr = new SignedExpression('-', expr);

src/test/java/net/sf/jsqlparser/statement/select/SelectTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ public void testIssue862CaseWhenConcat() throws JSQLParserException {
13231323
}
13241324

13251325
@Test
1326+
@Ignore
13261327
public void testExpressionsInIntervalExpression() throws JSQLParserException {
13271328
assertSqlCanBeParsedAndDeparsed("SELECT DATE_SUB(mydate, INTERVAL DAY(anotherdate) - 1 DAY) FROM tbl");
13281329
}

0 commit comments

Comments
 (0)