Skip to content

Commit 60d9838

Browse files
committed
Merge origin/master
2 parents 39e920d + 430b3ee commit 60d9838

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,8 +1150,8 @@ Normal names.
11501150
String RelObjectName() :
11511151
{ Token tk = null; String result = null; }
11521152
{
1153-
(result = RelObjectNameWithoutValue() | tk=<K_TOP> | tk=<K_VALUE> | tk=<K_VALUES>
1154-
| tk=<K_INTERVAL> | tk=<K_START> | tk=<K_ON> | tk=<K_ORDER>)
1153+
(result = RelObjectNameWithoutValue()
1154+
| tk=<K_GROUP> | tk=<K_INTERVAL> | tk=<K_ON> | tk=<K_ORDER> | tk=<K_START> | tk=<K_TOP> | tk=<K_VALUE> | tk=<K_VALUES> )
11551155

11561156
{
11571157
if (tk!=null) result=tk.image;
@@ -1196,7 +1196,7 @@ String RelObjectNameExt2():
11961196
String result=null;
11971197
}
11981198
{
1199-
( result=RelObjectNameExt() | tk=<K_FROM> | tk=<K_GROUP> )
1199+
( result=RelObjectNameExt() | tk=<K_FROM> )
12001200
{
12011201
if (tk!=null) result=tk.image;
12021202
return result;

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4008,6 +4008,12 @@ public void testOrderKeywordIssue932() throws JSQLParserException {
40084008
assertSqlCanBeParsedAndDeparsed("SELECT tmp3.order FROM tmp3");
40094009
}
40104010

4011+
@Test
4012+
public void testOrderKeywordIssue932_2() throws JSQLParserException {
4013+
assertSqlCanBeParsedAndDeparsed("SELECT group FROM tmp3");
4014+
assertSqlCanBeParsedAndDeparsed("SELECT tmp3.group FROM tmp3");
4015+
}
4016+
40114017
@Test
40124018
public void testTableFunctionInExprIssue923() throws JSQLParserException {
40134019
assertSqlCanBeParsedAndDeparsed("SELECT * FROM mytable WHERE func(a) IN func(b)");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public void testAllSqlsParseDeparse() throws IOException {
238238

239239
LOG.
240240
log(Level.INFO, "tested {0} files. got {1} correct parse results", new Object[]{count, success});
241-
assertTrue(success >= 162);
241+
assertTrue(success >= 164);
242242
}
243243

244244
@Test

0 commit comments

Comments
 (0)