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
735cb969
Commit
735cb969
authored
Apr 02, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor code beautification/consolidation.
parent
3b07182e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_exec.c
+5
-12
No files found.
src/pl/plpgsql/src/pl_exec.c
View file @
735cb969
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.23
8 2009/04/02 19:20:45 momjian
Exp $
* $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_exec.c,v 1.23
9 2009/04/02 20:16:30 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -3284,7 +3284,7 @@ exec_stmt_fetch(PLpgSQL_execstate *estate, PLpgSQL_stmt_fetch *stmt)
SPITupleTable
*
tuptab
;
Portal
portal
;
char
*
curname
;
int
n
;
uint32
n
;
/* ----------
* Get the portal of the cursor by name
...
...
@@ -3342,19 +3342,13 @@ exec_stmt_fetch(PLpgSQL_execstate *estate, PLpgSQL_stmt_fetch *stmt)
n
=
SPI_processed
;
/* ----------
* Set the target a
nd the global FOUND variable a
ppropriately.
* Set the target appropriately.
* ----------
*/
if
(
n
==
0
)
{
exec_move_row
(
estate
,
rec
,
row
,
NULL
,
tuptab
->
tupdesc
);
exec_set_found
(
estate
,
false
);
}
else
{
exec_move_row
(
estate
,
rec
,
row
,
tuptab
->
vals
[
0
],
tuptab
->
tupdesc
);
exec_set_found
(
estate
,
true
);
}
SPI_freetuptable
(
tuptab
);
}
...
...
@@ -3363,12 +3357,11 @@ exec_stmt_fetch(PLpgSQL_execstate *estate, PLpgSQL_stmt_fetch *stmt)
/* Move the cursor */
SPI_scroll_cursor_move
(
portal
,
stmt
->
direction
,
how_many
);
n
=
SPI_processed
;
/* Set the global FOUND variable appropriately. */
exec_set_found
(
estate
,
n
!=
0
);
}
/* Set the ROW_COUNT and the global FOUND variable appropriately. */
estate
->
eval_processed
=
n
;
exec_set_found
(
estate
,
n
!=
0
);
return
PLPGSQL_RC_OK
;
}
...
...
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