git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9298d2f)
Per SQL spec (in particular, the grammar in SQL:2008 7.13) we should allow
Mon, 6 Jul 2009 02:58:40 +0000 (02:58 +0000)
Mon, 6 Jul 2009 02:58:40 +0000 (02:58 +0000)
parentheses around the <query expression body> that follows a WITH clause, eg
with cte(foo) as ( values(0) ) ((select foo from cte));
This seems to be just an oversight/thinko in gram.y. Noted while
experimenting with bug #4902.


diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 280443074f5de72d1b2ad80bc81729b36ca27448..06499fa9bc928195e62736c07f18d09a84def965 100644 (file)
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.665 2009年06月18日 01:27:02 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.666 2009年07月06日 02:58:40 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -6879,7 +6879,7 @@ select_no_parens:
NULL);
$$ = 1ドル;
}
- | with_clause simple_select
+ | with_clause select_clause
{
insertSelectOptions((SelectStmt *) 2,ドル NULL, NIL,
NULL, NULL,
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /