@@ -1029,39 +1029,21 @@ Join JoinerExpression():
1029
1029
List<Column> columns = null;
1030
1030
}
1031
1031
{
1032
- /*
1033
- Refactor to be more restrictive.
1034
- left [outer] join
1035
- right [outer] join
1036
- full [outer] join
1037
- [inner] join
1038
- cross join
1039
- natural join
1040
- */
1041
- /* [ (
1042
- <K_LEFT> { join.setLeft(true); }
1043
- | <K_RIGHT> { join.setRight(true); }
1044
- | <K_FULL> { join.setFull(true); }
1045
- | <K_NATURAL> { join.setNatural(true); }
1046
- | <K_CROSS> { join.setCross(true); }
1047
- )
1048
- ]
1049
-
1050
- [
1051
- (
1052
- <K_OUTER> { join.setOuter(true); }
1053
- | <K_INNER> { join.setInner(true); }
1054
- )
1055
- ] */
1056
-
1057
- [ ( <K_LEFT> { join.setLeft(true); }
1058
- | <K_RIGHT> { join.setRight(true); }
1059
- | <K_FULL> { join.setFull(true); } ) [ <K_OUTER> { join.setOuter(true); } ]
1032
+ [
1033
+ ( <K_LEFT> { join.setLeft(true); }
1034
+ | <K_RIGHT> { join.setRight(true); }
1035
+ | <K_FULL> { join.setFull(true); }
1036
+ ) [ <K_OUTER> { join.setOuter(true); } ]
1060
1037
| <K_INNER> { join.setInner(true); }
1061
1038
| <K_NATURAL> { join.setNatural(true); }
1062
- | <K_CROSS> { join.setCross(true); } ]
1039
+ | <K_CROSS> { join.setCross(true); }
1040
+ ]
1041
+
1042
+ ( <K_JOIN> | "," { join.setSimple(true); } )
1043
+
1044
+ right=FromItem()
1045
+
1063
1046
1064
- ( <K_JOIN> | "," { join.setSimple(true); } ) right=FromItem()
1065
1047
[
1066
1048
( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
1067
1049
|
@@ -1071,10 +1053,8 @@ Join JoinerExpression():
1071
1053
]
1072
1054
{
1073
1055
join.setRightItem(right);
1056
+ return join;
1074
1057
}
1075
-
1076
-
1077
- { return join; }
1078
1058
}
1079
1059
1080
1060
Expression WhereClause():
0 commit comments