Re: using callbacks with connect_cached

"David E. Wheeler" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On Aug 23, 2013, at 7:13 PM, Vincent Veyron <[email protected]> wrote:

> Can't call method "do" on an undefined value
> at /home/lib/Aspro/db_handle.pm
> 
> which seems logical, since DBI.pm's documentation says :
> 
> "connect_cached.*" callbacks are invoked before connect_cached() has
> applied the connect attributes 
> 
> But I found a middle ground (setting the datestyle once at login time,
> it is then kept by the cached connection)

Pretty sure the connected callback will work, too.

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.