Skip to content

Commit 4c4a536

Browse files
committed
fixes #930
1 parent dc93a07 commit 4c4a536

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,7 @@ Join JoinerExpression() #JoinerExpression:
18721872
| <K_INNER> { join.setInner(true); }
18731873
| <K_NATURAL> { join.setNatural(true); }
18741874
| <K_CROSS> { join.setCross(true); }
1875+
| <K_OUTER> { join.setOuter(true); }
18751876
]
18761877

18771878
( <K_JOIN> | "," { join.setSimple(true); } (<K_OUTER> { join.setOuter(true); } )?

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,6 +3972,11 @@ public void testCrossApplyIssue344() throws JSQLParserException {
39723972
+ " else calc1.student_full_name end as summary\n"
39733973
+ ") calc2", true);
39743974
}
3975+
3976+
@Test
3977+
public void testOuterApplyIssue930() throws JSQLParserException {
3978+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM mytable D OUTER APPLY (SELECT * FROM mytable2 E WHERE E.ColID = D.ColID) A");
3979+
}
39753980

39763981
@Test
39773982
public void testWrongParseTreeIssue89() throws JSQLParserException {

0 commit comments

Comments
 (0)