|
8 | 8 | * #L%
|
9 | 9 | */
|
10 | 10 |
|
11 |
| -options{ |
12 |
| - IGNORE_CASE = true ; |
| 11 | +options { |
| 12 | + IGNORE_CASE = true; |
13 | 13 | STATIC = false;
|
14 | 14 | DEBUG_PARSER = false;
|
15 | 15 | DEBUG_LOOKAHEAD = false;
|
@@ -975,7 +975,7 @@ List<SelectExpressionItem> ListExpressionItem():
|
975 | 975 | }
|
976 | 976 | {
|
977 | 977 | item = SelectExpressionItem() {retval.add(item);}
|
978 |
| - ("," item = SelectExpressionItem() {retval.add(item);} )* |
| 978 | + (<K_COMMA> item = SelectExpressionItem() {retval.add(item);} )* |
979 | 979 | { return retval; }
|
980 | 980 | }
|
981 | 981 |
|
@@ -1636,7 +1636,7 @@ SelectExpressionItem SelectExpressionItem():
|
1636 | 1636 | Alias alias = null;
|
1637 | 1637 | }
|
1638 | 1638 | {
|
1639 |
| - expression=SimpleExpression() { selectExpressionItem = new SelectExpressionItem(); selectExpressionItem.setExpression(expression); } |
| 1639 | + expression=Condition() { selectExpressionItem = new SelectExpressionItem(); selectExpressionItem.setExpression(expression); } |
1640 | 1640 | [alias=Alias() { selectExpressionItem.setAlias(alias); }] { return selectExpressionItem; }
|
1641 | 1641 | }
|
1642 | 1642 |
|
@@ -1785,11 +1785,22 @@ List<SelectExpressionItem> PivotSingleInItems():
|
1785 | 1785 | SelectExpressionItem item;
|
1786 | 1786 | }
|
1787 | 1787 | {
|
1788 |
| - item = SelectExpressionItem() {retval.add(item);} |
1789 |
| - ("," item = SelectExpressionItem() {retval.add(item);} )* |
| 1788 | + item = PivotSelectExprItem() {retval.add(item);} |
| 1789 | + ("," item = PivotSelectExprItem() {retval.add(item);} )* |
1790 | 1790 | { return retval; }
|
1791 | 1791 | }
|
1792 | 1792 |
|
| 1793 | +SelectExpressionItem PivotSelectExprItem(): |
| 1794 | +{ |
| 1795 | + SelectExpressionItem selectExpressionItem = null; |
| 1796 | + Expression expression = null; |
| 1797 | + Alias alias = null; |
| 1798 | +} |
| 1799 | +{ |
| 1800 | + expression=SimpleExpression() { selectExpressionItem = new SelectExpressionItem(); selectExpressionItem.setExpression(expression); } |
| 1801 | + [alias=Alias() { selectExpressionItem.setAlias(alias); }] { return selectExpressionItem; } |
| 1802 | +} |
| 1803 | + |
1793 | 1804 | ExpressionListItem ExpressionListItem():
|
1794 | 1805 | {
|
1795 | 1806 | ExpressionListItem expressionListItem = null;
|
@@ -1957,12 +1968,12 @@ FromItem FromItem():
|
1957 | 1968 | (
|
1958 | 1969 | indexHint = MySQLIndexHint() {
|
1959 | 1970 | if (fromItem instanceof Table)
|
1960 |
| - ((Table) fromItem).setHint(indexHint); |
| 1971 | + ((Table) fromItem).setHint(indexHint); |
1961 | 1972 | }
|
1962 | 1973 | |
|
1963 | 1974 | sqlServerHints = SQLServerHints() {
|
1964 | 1975 | if (fromItem instanceof Table)
|
1965 |
| - ((Table) fromItem).setSqlServerHints(sqlServerHints); |
| 1976 | + ((Table) fromItem).setSqlServerHints(sqlServerHints); |
1966 | 1977 | }
|
1967 | 1978 | )
|
1968 | 1979 | ]
|
|
0 commit comments