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
32c97fd5
Commit
32c97fd5
authored
Nov 21, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress remaining compile warnings, and add a comment about why
it's not really broken. Andrew Dunstan
parent
35f49941
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
src/pl/plperl/SPI.xs
src/pl/plperl/SPI.xs
+4
-0
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+19
-3
No files found.
src/pl/plperl/SPI.xs
View file @
32c97fd5
...
...
@@ -94,3 +94,7 @@ spi_spi_exec_query(query, ...)
RETVAL = newRV_noinc((SV*) ret_hash);
OUTPUT:
RETVAL
BOOT:
items = 0; /* avoid 'unused variable' warning */
src/pl/plperl/plperl.c
View file @
32c97fd5
...
...
@@ -33,7 +33,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.6
0 2004/11/21 21:17:03
tgl Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.6
1 2004/11/21 22:13:37
tgl Exp $
*
**********************************************************************/
...
...
@@ -963,9 +963,25 @@ plperl_func_handler(PG_FUNCTION_ARGS)
if
(
prodesc
->
fn_retistuple
&&
fcinfo
->
resultinfo
)
/* set of tuples */
{
/*
* This branch will be taken when the function call
* appears in a context that can return a set of tuples,
* even if it only actually returns a single tuple
* (e.g. select a from foo() where foo returns a singleton
* of some composite type with member a). In this case, the
* return value will be a hashref. If a rowset is returned
* it will be an arrayref whose members will be hashrefs.
*
* Care is taken in the code only to refer to the appropriate
* one of ret_hv and ret_av, only one of which is therefore
* valid for any given call.
*
* XXX This code is in dire need of cleanup.
*/
/* SRF support */
HV
*
ret_hv
;
AV
*
ret_av
;
HV
*
ret_hv
=
NULL
;
AV
*
ret_av
=
NULL
;
FuncCallContext
*
funcctx
;
int
call_cntr
;
int
max_calls
;
...
...
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