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
450d7e27
Commit
450d7e27
authored
21 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Seems pl_funcs didn't have support for plpgsql PERFORM statement.
parent
e2bfe2dd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pl/plpgsql/src/pl_funcs.c
+16
-1
16 additions, 1 deletion
src/pl/plpgsql/src/pl_funcs.c
with
16 additions
and
1 deletion
src/pl/plpgsql/src/pl_funcs.c
+
16
−
1
View file @
450d7e27
...
...
@@ -3,7 +3,7 @@
* procedural language
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.2
5
2003/0
3
/2
5
0
3:16:41
tgl Exp $
* $Header: /cvsroot/pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.2
6
2003/0
5
/2
3
0
4:08:34
tgl Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
...
...
@@ -472,6 +472,8 @@ plpgsql_stmt_typename(PLpgSQL_stmt * stmt)
return
"fetch"
;
case
PLPGSQL_STMT_CLOSE
:
return
"close"
;
case
PLPGSQL_STMT_PERFORM
:
return
"perform"
;
}
return
"unknown"
;
...
...
@@ -504,6 +506,7 @@ static void dump_getdiag(PLpgSQL_stmt_getdiag * stmt);
static
void
dump_open
(
PLpgSQL_stmt_open
*
stmt
);
static
void
dump_fetch
(
PLpgSQL_stmt_fetch
*
stmt
);
static
void
dump_close
(
PLpgSQL_stmt_close
*
stmt
);
static
void
dump_perform
(
PLpgSQL_stmt_perform
*
stmt
);
static
void
dump_expr
(
PLpgSQL_expr
*
expr
);
...
...
@@ -579,6 +582,9 @@ dump_stmt(PLpgSQL_stmt * stmt)
case
PLPGSQL_STMT_CLOSE
:
dump_close
((
PLpgSQL_stmt_close
*
)
stmt
);
break
;
case
PLPGSQL_STMT_PERFORM
:
dump_perform
((
PLpgSQL_stmt_perform
*
)
stmt
);
break
;
default:
elog
(
ERROR
,
"plpgsql_dump: unknown cmd_type %d
\n
"
,
stmt
->
cmd_type
);
break
;
...
...
@@ -808,6 +814,15 @@ dump_close(PLpgSQL_stmt_close * stmt)
printf
(
"CLOSE curvar=%d
\n
"
,
stmt
->
curvar
);
}
static
void
dump_perform
(
PLpgSQL_stmt_perform
*
stmt
)
{
dump_ind
();
printf
(
"PERFORM expr = "
);
dump_expr
(
stmt
->
expr
);
printf
(
"
\n
"
);
}
static
void
dump_exit
(
PLpgSQL_stmt_exit
*
stmt
)
{
...
...
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