Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
593badd3
Commit
593badd3
authored
Jun 08, 2005
by
Neil Conway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct an omission in the syntax error message emitted by EXECUTE INTO
in pl/pgsql.
parent
fbc4edfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/pl/plpgsql/src/gram.y
src/pl/plpgsql/src/gram.y
+6
-7
No files found.
src/pl/plpgsql/src/gram.y
View file @
593badd3
...
...
@@ -4,7 +4,7 @@
* procedural language
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
3 2005/06/07 02:47:1
6 neilc Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
4 2005/06/08 00:49:3
6 neilc Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -1263,13 +1263,12 @@ stmt_dynexecute : K_EXECUTE lno
new->cmd_type = PLPGSQL_STMT_DYNEXECUTE;
new->lineno = $2;
new->query = expr;
new->rec = NULL;
new->row = NULL;
/*
* If we saw "INTO", look for a
n additional
*
row or record var
.
* If we saw "INTO", look for a
following row
*
var, record var, or list of scalars
.
*/
if (endtoken == K_INTO)
{
...
...
@@ -1293,9 +1292,9 @@ stmt_dynexecute : K_EXECUTE lno
plpgsql_error_lineno = $2;
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("syntax error at \"%s\"",
yytext),
errdetail("Expected record or row variable
.")));
errmsg("syntax error at \"%s\"",
yytext),
errdetail("Expected record variable, row variable, "
"or list of scalar variables
.")));
}
if (yylex() != ';')
yyerror("syntax error");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment