File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 4
4
* procedural language
5
5
*
6
6
* IDENTIFICATION
7
- * $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.73 2005/06/07 02:47:16 neilc Exp $
7
+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.74 2005/06/08 00:49:36 neilc Exp $
8
8
*
9
9
* This software is copyrighted by Jan Wieck - Hamburg.
10
10
*
@@ -1263,13 +1263,12 @@ stmt_dynexecute : K_EXECUTE lno
1263
1263
new ->cmd_type = PLPGSQL_STMT_DYNEXECUTE;
1264
1264
new ->lineno = $2 ;
1265
1265
new ->query = expr;
1266
-
1267
1266
new ->rec = NULL ;
1268
1267
new ->row = NULL ;
1269
1268
1270
1269
/*
1271
- * If we saw "INTO", look for an additional
1272
- * row or record var.
1270
+ * If we saw "INTO", look for a following row
1271
+ * var, record var, or list of scalars .
1273
1272
*/
1274
1273
if (endtoken == K_INTO)
1275
1274
{
@@ -1293,9 +1292,9 @@ stmt_dynexecute : K_EXECUTE lno
1293
1292
plpgsql_error_lineno = $2 ;
1294
1293
ereport (ERROR,
1295
1294
(errcode(ERRCODE_SYNTAX_ERROR),
1296
- errmsg(" syntax error at \" %s\" " ,
1297
- yytext),
1298
- errdetail( " Expected record or row variable ." )));
1295
+ errmsg(" syntax error at \" %s\" " , yytext),
1296
+ errdetail( " Expected record variable, row variable, "
1297
+ " or list of scalar variables ." )));
1299
1298
}
1300
1299
if (yylex () != ' ;' )
1301
1300
yyerror (" syntax error" );
You can’t perform that action at this time.
0 commit comments