Skip to content

Commit 785af16

Browse files
fix: rewrite the production to make it comptaible with the Maven build
Signed-off-by: Andreas Reichel <[email protected]> Signed-off-by: manticore-projects <[email protected]>
1 parent 1ad52ff commit 785af16

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,18 +2117,22 @@ Table Table() #TableName :
21172117
//String serverName = null, databaseName = null, schemaName = null, tableName = null;
21182118
ObjectNames data = null;
21192119
Token fileNameToken = null;
2120+
Table table;
21202121
}
21212122
{
2122-
data = RelObjectNames()
2123-
{
2124-
Table table = new Table(data.getNames());
2125-
linkAST(table,jjtThis);
2126-
return table;
2127-
}
2128-
|
2129-
fileNameToken = <S_CHAR_LITERAL>
2123+
(
2124+
data = RelObjectNames()
2125+
{
2126+
table = new Table(data.getNames());
2127+
}
2128+
|
2129+
fileNameToken = <S_CHAR_LITERAL>
2130+
{
2131+
table = new Table(fileNameToken.image);
2132+
}
2133+
)
2134+
21302135
{
2131-
Table table = new Table(fileNameToken.image);
21322136
linkAST(table,jjtThis);
21332137
return table;
21342138
}

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*-
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2024 JSQLParser
6+
* %%
7+
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0
8+
* #L%
9+
*/
110
package net.sf.jsqlparser.statement.select;
211

312
import net.sf.jsqlparser.JSQLParserException;

0 commit comments

Comments
 (0)