Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 203015e

Browse files
committed
Fix small oversight in recent patch to add more CREATE-FUNCTION-time
syntax checking to plpgsql: check_sql_expr() wasn't being called by make_select_stmt(), so that there was no SQL syntax check for SELECT statements.
1 parent 40e1b30 commit 203015e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pl/plpgsql/src/gram.y

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* procedural language
55
*
66
* IDENTIFICATION
7-
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.81 2005/09/14 13:46:47 tgl Exp $
7+
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.82 2005/10/13 15:34:19 tgl Exp $
88
*
99
* This software is copyrighted by Jan Wieck - Hamburg.
1010
*
@@ -1986,6 +1986,8 @@ make_select_stmt(void)
19861986
expr->params[nparams] = params[nparams];
19871987
plpgsql_dstring_free(&ds);
19881988

1989+
check_sql_expr(expr->query);
1990+
19891991
if (have_into)
19901992
{
19911993
PLpgSQL_stmt_select *select;

0 commit comments

Comments
 (0)