1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-11 05:41:32 +03:00

Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);

This commit is contained in:
Michael Meskes 2003-12-24 22:04:09 +00:00
parent a922472a2a
commit 03caf7649b

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.267 2003/12/17 15:23:45 meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.268 2003/12/24 22:04:09 meskes Exp $ */
/* Copyright comment */
%{
@ -3120,7 +3120,7 @@ where_clause: WHERE a_expr { $$ = cat2_str(make_str("where"), $2); }
TableFuncElementList: TableFuncElement
{ $$ = $1; }
| TableFuncElementList ',' TableFuncElement
{ $$ = cat_str(3, $1, ',', $3); }
{ $$ = cat_str(3, $1, make_str(","), $3); }
;
TableFuncElement: ColId Typename { $$ = cat2_str($1, $2); }