Skip to content

Commit

Permalink
fixes #876
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Oct 18, 2019
1 parent 25e1dcc commit 144e60b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ String RelObjectNameWithoutValue() :
| tk=<K_TEMP> | tk=<K_TEMPORARY> | tk=<K_TYPE> | tk=<K_ISNULL>
| tk=<K_ZONE> | tk=<K_COLUMNS> | tk=<K_DESCRIBE> | tk=<K_FN> | tk=<K_PATH>
| tk=<K_DATE_LITERAL> | tk=<K_NEXTVAL> | tk=<K_TRUE> | tk=<K_FALSE> | tk=<K_DUPLICATE>
| tk=<K_READ> | tk=<K_SIZE>
| tk=<K_READ> | tk=<K_SIZE> | tk=<K_SESSION>
/* | tk=<K_PLACING> | tk=<K_BOTH> | tk=<K_LEADING> | tk=<K_TRAILING> */
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3892,4 +3892,9 @@ public void testPartitionByWithBracketsIssue865() throws JSQLParserException {
public void testWithAsRecursiveIssue874() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("WITH rn AS (SELECT rownum rn FROM dual CONNECT BY level <= (SELECT max(cases) FROM t1)) SELECT pname FROM t1, rn WHERE rn <= cases ORDER BY pname");
}

@Test
public void testSessionKeywordIssue876() throws JSQLParserException {
assertSqlCanBeParsedAndDeparsed("SELECT ID_COMPANY FROM SESSION.COMPANY");
}
}

0 comments on commit 144e60b

Please sign in to comment.