Skip to content

Commit 03caf76

Browse files
author
Michael Meskes
committed
Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);
1 parent a922472 commit 03caf76

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/interfaces/ecpg/preproc/preproc.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.267 2003/12/17 15:23:45 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.268 2003/12/24 22:04:09 meskes Exp $ */
22

33
/* Copyright comment */
44
%{
@@ -3017,7 +3017,7 @@ table_ref: relation_expr
30173017
| func_table AS '(' TableFuncElementList ')'
30183018
{ $$=cat_str(4, $1, make_str("as ("), $4, make_str(")")); }
30193019
| func_table AS ColId '(' TableFuncElementList ')'
3020-
{ $$=cat_str(6, $1, make_str("as"), $3, make_str("("), $5, make_str(")")); }
3020+
{ $$=cat_str(6, $1, make_str("as"), $3, make_str("("), $5, make_str(")"));}
30213021
| func_table ColId '(' TableFuncElementList ')'
30223022
{ $$=cat_str(5, $1, $2, make_str("("), $4, make_str(")")); }
30233023
| select_with_parens
@@ -3120,7 +3120,7 @@ where_clause: WHERE a_expr { $$ = cat2_str(make_str("where"), $2); }
31203120
TableFuncElementList: TableFuncElement
31213121
{ $$ = $1; }
31223122
| TableFuncElementList ',' TableFuncElement
3123-
{ $$ = cat_str(3, $1, ',', $3); }
3123+
{ $$ = cat_str(3, $1, make_str(","), $3); }
31243124
;
31253125

31263126
TableFuncElement: ColId Typename { $$ = cat2_str($1, $2); }

0 commit comments

Comments
 (0)