Oracle problem
From: Bart Kelsey (bart_at_osc.edu)
Date: 11/23/04
- Next message: Wieland Pusch: "Re: Oracle problem"
- Previous message: Anna Fong: "RE: Killing a Process"
- Next in thread: Wieland Pusch: "Re: Oracle problem"
- Reply: Wieland Pusch: "Re: Oracle problem"
- Reply: Tim Bunce: "Re: Oracle problem"
- Maybe reply: Hardy Merrill: "Re: Oracle problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 23 Nov 2004 22:13:30 +0000 To: dbi-users@perl.org
I'm having some trouble with DBD::Oracle...
When I execute this code:
***
$sth = $dbh->prepare("select * from abbrev where type = ?");
$sth->execute("PAYMENT");
while((@row) = $sth->fetchrow_array) {
print(join(", ", @row), "\n");
}
$sth->finish;
***
... no rows are returned. However, when I execute this code here:
***
$sth = $dbh->prepare("select * from abbrev where type = 'PAYMENT'");
$sth->execute();
while((@row) = $sth->fetchrow_array) {
print(join(", ", @row), "\n");
}
$sth->finish;
***
... it correctly returns a row. Does anyone know what the problem might
be? I'm running DBD::Oracle 1.16 on Redhat Enterprise Linux 3,
accessing Oracle 9.2.0.5.0.
Thanks,
Bart
- Next message: Wieland Pusch: "Re: Oracle problem"
- Previous message: Anna Fong: "RE: Killing a Process"
- Next in thread: Wieland Pusch: "Re: Oracle problem"
- Reply: Wieland Pusch: "Re: Oracle problem"
- Reply: Tim Bunce: "Re: Oracle problem"
- Maybe reply: Hardy Merrill: "Re: Oracle problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|