add more join types
This commit is contained in:
parent
b4adfa5b74
commit
177901816f
|
@ -815,11 +815,15 @@ join_clause:
|
||||||
;
|
;
|
||||||
|
|
||||||
opt_join_type:
|
opt_join_type:
|
||||||
INNER { $$ = kJoinInner; }
|
INNER { $$ = kJoinInner; }
|
||||||
| OUTER { $$ = kJoinOuter; }
|
| OUTER { $$ = kJoinOuter; }
|
||||||
| LEFT { $$ = kJoinLeft; }
|
| LEFT OUTER { $$ = kJoinLeftOuter; }
|
||||||
| RIGHT { $$ = kJoinRight; }
|
| RIGHT OUTER { $$ = kJoinRightOuter; }
|
||||||
| /* empty, default */ { $$ = kJoinInner; }
|
| LEFT { $$ = kJoinLeft; }
|
||||||
|
| RIGHT { $$ = kJoinRight; }
|
||||||
|
| CROSS { $$ = kJoinCross; }
|
||||||
|
| NATURAL { $$ = kJoinNatural; }
|
||||||
|
| /* empty, default */ { $$ = kJoinInner; }
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,10 @@ namespace hsql {
|
||||||
kJoinOuter,
|
kJoinOuter,
|
||||||
kJoinLeft,
|
kJoinLeft,
|
||||||
kJoinRight,
|
kJoinRight,
|
||||||
|
kJoinLeftOuter,
|
||||||
|
kJoinRightOuter,
|
||||||
|
kJoinCross,
|
||||||
|
kJoinNatural
|
||||||
};
|
};
|
||||||
|
|
||||||
// Definition of a join construct.
|
// Definition of a join construct.
|
||||||
|
|
Loading…
Reference in New Issue