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: 8a1468a)
Allow %TYPE to be used with SETOF, per gripe from Murat Tasan.
2006年1月31日 22:40:03 +0000 (22:40 +0000)
2006年1月31日 22:40:03 +0000 (22:40 +0000)

diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 82d36cea023bda50c1d9ba2b135ad6ff6aaa5b03..bda5c932548ccafc8d7e68e4ec556129b34eb046 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.524 2006年01月22日 20:03:16 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.525 2006年01月31日 22:40:03 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -3672,7 +3672,7 @@ func_return:
;
/*
- * We would like to make the second production here be ColId attrs etc,
+ * We would like to make the %TYPE productions here be ColId attrs etc,
* but that causes reduce/reduce conflicts. type_name is next best choice.
*/
func_type: Typename { $$ = 1ドル; }
@@ -3683,6 +3683,14 @@ func_type: Typename { $$ = 1ドル; }
$$->pct_type = true;
$$->typmod = -1;
}
+ | SETOF type_name attrs '%' TYPE_P
+ {
+ $$ = makeNode(TypeName);
+ $$->names = lcons(makeString(2ドル), 3ドル);
+ $$->pct_type = true;
+ $$->typmod = -1;
+ $$->setof = TRUE;
+ }
;
This is the main PostgreSQL git repository.
RSS Atom

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