Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit203015e

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 bymake_select_stmt(), so that there was no SQL syntax check for SELECTstatements.
1 parent40e1b30 commit203015e

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)

[8]ページ先頭

©2009-2025 Movatter.jp