HHH-6672 - Remove UNION support from 5.x grammars
This commit is contained in:
parent
22ffaea0c3
commit
dd4f809d20
|
@ -74,7 +74,6 @@ tokens
|
|||
SOME="some";
|
||||
SUM="sum";
|
||||
TRUE="true";
|
||||
UNION="union";
|
||||
UPDATE="update";
|
||||
VERSIONED="versioned";
|
||||
WHERE="where";
|
||||
|
@ -298,10 +297,6 @@ insertablePropertySpec
|
|||
}
|
||||
;
|
||||
|
||||
union
|
||||
: queryRule (UNION queryRule)*
|
||||
;
|
||||
|
||||
//## query:
|
||||
//## [selectClause] fromClause [whereClause] [groupByClause] [havingClause] [orderByClause];
|
||||
|
||||
|
@ -805,7 +800,7 @@ compoundExpr
|
|||
;
|
||||
|
||||
subQuery
|
||||
: union
|
||||
: queryRule
|
||||
{ #subQuery = #([QUERY,"query"], #subQuery); }
|
||||
;
|
||||
|
||||
|
|
|
@ -33,13 +33,7 @@ import static org.junit.Assert.fail;
|
|||
* works properly (i.e. no unexpected syntax errors).
|
||||
* todo this should be a unit test.
|
||||
*/
|
||||
public class HqlParserTest{
|
||||
|
||||
|
||||
@Test
|
||||
public void testUnion() throws Exception {
|
||||
parse("from Animal a where a in (from Cat union from Dog) ");
|
||||
}
|
||||
public class HqlParserTest {
|
||||
|
||||
/**
|
||||
* Section 9.2 - from *
|
||||
|
|
Loading…
Reference in New Issue