Operations on statement handles when database handle is disconnected

2011-05-15 Thread Jonathan Leffler
Tested using Perl 5.13.4 and DBI 1.616 now - but I originally spotted the problem in 2003 when the versions were a lot older... Consider: # Test that statement handles from disconnected connections fail! use strict; use warnings; use DBI; my $table = dbd_tester; my $dbh =

Re: Operations on statement handles when database handle is disconnected

2011-05-15 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Is this a defect in DBI or in DBD::Informix (and NullP)? Or is it WAD - Working As Designed? Not sure when this was added, but on DBD::Pg, an error is given, due to this bit of code in dbdimp.c: if (NULL == imp_dbh-conn) croak(execute

Re: Operations on statement handles when database handle is disconnected

2011-05-15 Thread Michael Peppler
On May 15, 2011, at 2:08 PM, Jonathan Leffler wrote: Tested using Perl 5.13.4 and DBI 1.616 now - but I originally spotted the problem in 2003 when the versions were a lot older... Consider: # Test that statement handles from disconnected connections fail! use strict; use warnings;