dbd

Why do I get "Can't call method "fetchrow_array" without a package or object reference"?

I have installed DBD::Pg version 2.17.1 but still still getting error while using below code $res = $conn->prepare($query); $res = $res->execute(); @tuple = $res->fetchrow_array; error: Can't call method "fetchrow_array" without a package or object reference at test.pl line 69. Please suggest. ...

Async queries with DBD::Pg fail with: Cannot execute until previous async query has finished

Hello, I'm using CentOS 5.5 Linux (same as Redhat 5.5) with stock perl v5.8.8 and have installed DBD-Pg-2.17.1 via CPAN shell and I'm using postgresql-server-8.4.5-1PGDG.rhel5 and friends. I have prepared a simple test case demonstrating my problem - it is listed at the bottom. My code works ok, when I remove {pg_async => PG_ASYNC} M...