Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
593badd3
Commit
593badd3
authored
19 years ago
by
Neil Conway
Browse files
Options
Downloads
Patches
Plain Diff
Correct an omission in the syntax error message emitted by EXECUTE INTO
in pl/pgsql.
parent
fbc4edfb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pl/plpgsql/src/gram.y
+6
-7
6 additions, 7 deletions
src/pl/plpgsql/src/gram.y
with
6 additions
and
7 deletions
src/pl/plpgsql/src/gram.y
+
6
−
7
View file @
593badd3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* procedural language
* procedural language
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
3
2005/06/0
7
0
2
:4
7:1
6 neilc Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/gram.y,v 1.7
4
2005/06/0
8
0
0
:4
9:3
6 neilc Exp $
*
*
* This software is copyrighted by Jan Wieck - Hamburg.
* This software is copyrighted by Jan Wieck - Hamburg.
*
*
...
@@ -1263,13 +1263,12 @@ stmt_dynexecute : K_EXECUTE lno
...
@@ -1263,13 +1263,12 @@ stmt_dynexecute : K_EXECUTE lno
new->cmd_type = PLPGSQL_STMT_DYNEXECUTE;
new->cmd_type = PLPGSQL_STMT_DYNEXECUTE;
new->lineno = $2;
new->lineno = $2;
new->query = expr;
new->query = expr;
new->rec = NULL;
new->rec = NULL;
new->row = NULL;
new->row = NULL;
/*
/*
* If we saw "INTO", look for a
n additional
* If we saw "INTO", look for a
following row
*
row or
record var.
*
var,
record var
, or list of scalars
.
*/
*/
if (endtoken == K_INTO)
if (endtoken == K_INTO)
{
{
...
@@ -1293,9 +1292,9 @@ stmt_dynexecute : K_EXECUTE lno
...
@@ -1293,9 +1292,9 @@ stmt_dynexecute : K_EXECUTE lno
plpgsql_error_lineno = $2;
plpgsql_error_lineno = $2;
ereport(ERROR,
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("syntax error at \"%s\"",
errmsg("syntax error at \"%s\"",
yytext),
yytext),
errdetail("Expected record variable, row variable, "
errdetail("Expected record or row
variable.")));
"or list of scalar
variable
s
.")));
}
}
if (yylex() != ';')
if (yylex() != ';')
yyerror("syntax error");
yyerror("syntax error");
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment