DBI: ist it possible to get an Oracle VARRAY als Return Value from a PL/SQL call
From: oli (olivier6_at_gmx.ch)
Date: 01/28/04
- Next message: Tim Bunce: "Re: Variable Bound"
- Previous message: biermana_at_honi.com: "DBD-Oracle on AIX 5.2, Oracle 9.2.0.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Jan 2004 08:57:58 -0800
Hello,
I try to get a return value from an Oracle PL/SQL procedure. This
version works, the return value from PL/SQL is a VARCHAR2:
my $returnValue; # Return value from PLSQL
eval {
my $plsql = $dbh -> prepare (
qq {
BEGIN
:returnValue := steuerung_pkg.get_filenames_fct (
name_in => :p_name,
periodizitaet_in => :p_periodizitaet);
END;
} );
$plsql -> bind_param (":p_name", 'reservation');
$plsql -> bind_param (":p_periodizitaet", 'day');
$plsql -> bind_param_inout (":returnValue", \$returnValue, 125);
$plsql -> execute;
};
if ( $@ ) {
warn "Execution from steuerung_pkg.get_filenames_fct false;
$DBI::errstr\n";
}
else
{print "PLSQL ok returnValue is: $returnValue\n";}
New, I would like to return a VARRAY from PL/SQL (without converting
it in a string with delimiter before returning). How can I do that ?
Thank you.
Olivier
- Next message: Tim Bunce: "Re: Variable Bound"
- Previous message: biermana_at_honi.com: "DBD-Oracle on AIX 5.2, Oracle 9.2.0.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|