Skip to content

Commit e95f6ce

Browse files
committed
fixes #1138
1 parent cb7a018 commit e95f6ce

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-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
@@ -1393,7 +1393,7 @@ String RelObjectNameExt():
13931393
( result=RelObjectName() | tk=<K_LEFT> | tk=<K_RIGHT> | tk=<K_SET>
13941394
| tk=<K_DOUBLE> | tk=<K_IF> | <K_OPTIMIZE> | tk=<K_LIMIT>
13951395
| tk=<K_OFFSET> | tk=<K_PROCEDURE> | tk=<K_PUBLIC>
1396-
| tk=<K_CASEWHEN> )
1396+
| tk=<K_CASEWHEN> | tk=<K_IN> )
13971397
{
13981398
if (tk!=null) result=tk.image;
13991399
return result;

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4490,4 +4490,9 @@ public void testKeywordSkipIssue1136() throws JSQLParserException {
44904490
public void testKeywordAlgorithmIssue1137() throws JSQLParserException {
44914491
assertSqlCanBeParsedAndDeparsed("SELECT algorithm FROM tablename");
44924492
}
4493+
4494+
@Test
4495+
public void testKeywordAlgorithmIssue1138() throws JSQLParserException {
4496+
assertSqlCanBeParsedAndDeparsed("SELECT * FROM in.tablename");
4497+
}
44934498
}

0 commit comments

Comments
 (0)