Re: Possible extension for DBI error handler (fwd)

2006-01-26 Thread Henri Asseily
Tim Bunce wrote: On Wed, Jan 25, 2006 at 02:51:14PM -0500, Steven Lembark wrote: -- Tim Bunce <[EMAIL PROTECTED]> $dbh->connect_cached( @{ $meta{ $dbh } } ); If the connection has failed then connect_cached() will return a new, different, $dbh which would be lost with the code a

Re: Possible extension for DBI error handler (fwd)

2006-01-25 Thread Tim Bunce
On Wed, Jan 25, 2006 at 02:51:14PM -0500, Steven Lembark wrote: > > > -- Tim Bunce <[EMAIL PROTECTED]> > > >> $dbh->connect_cached( @{ $meta{ $dbh } } ); > > > > If the connection has failed then connect_cached() will return a new, > > different, $dbh which would be lost with the co

Re: Possible extension for DBI error handler (fwd)

2006-01-25 Thread Steven Lembark
-- Tim Bunce <[EMAIL PROTECTED]> >> $dbh->connect_cached( @{ $meta{ $dbh } } ); > > If the connection has failed then connect_cached() will return a new, > different, $dbh which would be lost with the code above. > > To change the $dbh in the application to be this new $dbh you'd n

Re: Possible extension for DBI error handler (fwd)

2006-01-23 Thread Tim Bunce
On Mon, Jan 23, 2006 at 02:37:24PM -0500, Steven Lembark wrote: > > >From DBI's pod: > > This only works for methods which return a single value > and is hard to make reliable (avoiding infinite loops, > for example) and so isn't recommended for general use! > If you find a good u

Re: Possible extension for DBI error handler (fwd)

2006-01-23 Thread Steven Lembark
>From DBI's pod: This only works for methods which return a single value and is hard to make reliable (avoiding infinite loops, for example) and so isn't recommended for general use! If you find a good use for it then please let me know. The use of it would be returning a defined