Skip site navigation (1) Skip section navigation (2)

Re: Yet another DBD::Pg problem

From: David Fetter <david(at)fetter(dot)org>
To: SF Postgres <sfpug(at)postgresql(dot)org>
Subject: Re: Yet another DBD::Pg problem
Date: 2003-11-14 05:24:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: sfpug
On Thu, Nov 13, 2003 at 09:12:06PM -0800, Josh Berkus wrote:
> Davids, etc:
> Anyone get the feeling we should start a pgsql-perl mailing list?

Yes!  It appears that the -interfaces list is mostly java.

> I've been getting off and on a bizarre problem were database handles
> defined in the main program can't be used in subs.   I get a:

> Can't call method "prepare" on an undefined value at
> line 410

> Is this a known issue with earlier versions of DBD::pg?   Something
> in my sloppy perl programming?  Hints?

I think it might have something to do with either your $dbh or $sth
not being in scope when you call $sth->prepare() but David Wheeler
knows a lot more about this than I. :)

2 Many Daves
David Fetter david(at)fetter(dot)org
phone: +1 510 893 6100    cell: +1 415 235 3778

In response to

sfpug by date

Next:From: Josh BerkusDate: 2003-11-14 17:59:01
Subject: Re: Meeting? November/December
Previous:From: Josh BerkusDate: 2003-11-14 05:12:06
Subject: Yet another DBD::Pg problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group