Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use DBI; my $dbh; my $sth; my $plsql; my $id=0; my $l_chime = qw(HZgrDAwAPB5QvcatrY); connect_db(); eval{ $plsql = $dbh->prepare(q{ BEGIN :id := Pkg.search_string(:l_chime); END; }); $plsql->bind_param_inout(":id",\$id,16); $plsql->bind_param_inout(":l_chime",\$l_chime,4000); $plsql->execute; $plsql->finish; }; print "returned: id: $id \n";
$id always returns null and i get a 'use of unitialised variable in string or concatenation (.)' error. I followed the steps in this perlmonks post, but still no luck.
You will see above that i have used bind_param_inout for id but i have tried bind_param, and it does the same thing.
Any ideas would be appeciated.
Thanks.
Joe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI Out parameters
by mje (Curate) on Nov 19, 2008 at 13:46 UTC | |
by almut (Canon) on Nov 19, 2008 at 14:20 UTC | |
by mje (Curate) on Nov 19, 2008 at 14:43 UTC | |
by almut (Canon) on Nov 19, 2008 at 15:05 UTC | |
by mje (Curate) on Nov 19, 2008 at 16:12 UTC | |
by Anonymous Monk on Nov 19, 2008 at 14:29 UTC | |
by almut (Canon) on Nov 19, 2008 at 14:37 UTC | |
by mje (Curate) on Nov 19, 2008 at 14:52 UTC | |
|
Re: DBI Out parameters
by almut (Canon) on Nov 19, 2008 at 12:27 UTC | |
by Anonymous Monk on Nov 19, 2008 at 13:54 UTC | |
by almut (Canon) on Nov 19, 2008 at 14:17 UTC | |
|
Re: DBI Out parameters
by Krambambuli (Curate) on Nov 20, 2008 at 08:04 UTC |