File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.524 2006/01/22 20:03:16 tgl Exp $
14
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.525 2006/01/31 22:40:03 tgl Exp $
15
15
*
16
16
* HISTORY
17
17
* AUTHOR DATE MAJOR EVENT
@@ -3672,7 +3672,7 @@ func_return:
3672
3672
;
3673
3673
3674
3674
/*
3675
- * We would like to make the second production here be ColId attrs etc,
3675
+ * We would like to make the %TYPE productions here be ColId attrs etc,
3676
3676
* but that causes reduce/reduce conflicts. type_name is next best choice.
3677
3677
*/
3678
3678
func_type: Typename { $$ = $1 ; }
@@ -3683,6 +3683,14 @@ func_type: Typename { $$ = $1; }
3683
3683
$$ ->pct_type = true ;
3684
3684
$$ ->typmod = -1 ;
3685
3685
}
3686
+ | SETOF type_name attrs ' %' TYPE_P
3687
+ {
3688
+ $$ = makeNode(TypeName);
3689
+ $$ ->names = lcons(makeString($2 ), $3 );
3690
+ $$ ->pct_type = true ;
3691
+ $$ ->typmod = -1 ;
3692
+ $$ ->setof = TRUE ;
3693
+ }
3686
3694
;
3687
3695
3688
3696
You can’t perform that action at this time.
0 commit comments