-
-
Save krk/3393e27be20dad429ad6594957fbe4eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 8489,8507 **** | |
n->fromClause = list_make1($2); | |
$$ = (Node *)n; | |
} | |
! | select_clause UNION opt_all select_clause | |
{ | |
! $$ = makeSetOp(SETOP_UNION, $3, $1, $4); | |
} | |
! | select_clause INTERSECT opt_all select_clause | |
{ | |
! $$ = makeSetOp(SETOP_INTERSECT, $3, $1, $4); | |
} | |
! | select_clause EXCEPT opt_all select_clause | |
{ | |
! $$ = makeSetOp(SETOP_EXCEPT, $3, $1, $4); | |
} | |
; | |
/* | |
* SQL standard WITH clause looks like: | |
--- 8490,8514 ---- | |
n->fromClause = list_make1($2); | |
$$ = (Node *)n; | |
} | |
! | select_clause UNION opt_all opt_corresponding_clause select_clause | |
{ | |
! $$ = makeSetOp(SETOP_UNION, $3, $4, $1, $5); | |
} | |
! | select_clause INTERSECT opt_all opt_corresponding_clause select_clause | |
{ | |
! $$ = makeSetOp(SETOP_INTERSECT, $3, $4, $1, $5); | |
} | |
! | select_clause EXCEPT opt_all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment