Dear Tim,

Consider the following test code - using the NullP driver.

    #!/bin/perl -w
    #
    # Test that statement handles from disconnected connections fail!
    use strict;
    use DBI;
    my $table = "dbd_tester";
    my $dbh = DBI->connect('dbi:NullP:immaterial', '', '', {RaiseError=>1});
    my $sth = $dbh->prepare(qq{INSERT INTO $table VALUES(?)});
    $dbh->disconnect;
    $sth->execute(1);
    print "** Failed to FAIL!\n";

With both as written and with DBD::Informix replacing the NullP driver,
the code reaches that print statement, when it shouldn't, I think,
because $dbh->disconnect should have invalidated $sth.

Is this a bug - or a feature?  And where is it a bug or feature?  DBI,
or in the drivers?

-- 
Jonathan Leffler                           #include <disclaimer.h>
STSM, Informix Database Engineering, IBM Data Management
Phone: +1 650-926-6921   Fax: +1 650-926-6971   Tie-line: 630-6921
Email: [EMAIL PROTECTED]
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org

Reply via email to