Greetings

I have a piece of code that looks like this:

---
....
my $dbh = DBI->connect_cached(<Postgres specific>, {
                              AutoCommit => 0,
                              PrintError => 0,
                              RaiseError => 1, });

my $sth = $dbh->prepare("SELECT * FROM SomeView");

$sth->execute;

my $href = $sth->fetchrow_hashref; # Line xyz
....
$sth->finish;
....
---

This is running under mod_perl on Apache (perl 5.6.0, Apache 1.3.22,
mod_perl-1.24). This seems to work fine most of the time, except
sometimes
it tells me: "no statement executing at line xyz".

What am I missing? Any insights will be helpful.

Thanks and regards
Amit

Reply via email to