ANNOUNCE: DBI 1.42

From: Tim Bunce (Tim.Bunce_at_pobox.com)
Date: 03/16/04

  • Next message: Matthew O. Persico: "DBD::Sybase and packet sizes"
    Date: Mon, 15 Mar 2004 23:54:08 +0000
    To: dbi-announce@perl.org
    
    

      file: $CPAN/authors/id/T/TI/TIMB/DBI-1.42.tar.gz
      size: 348167 bytes
       md5: ca8c8a1a4797d98121b41c1d0a5b3b7c

    =head1 CHANGES in DBI 1.42 (svn rev 222), 12th March 2004

      Fixed $sth->{NUM_OF_FIELDS} of non-executed statement handle
        to be undef as per the docs (it was 0).
      Fixed t/41prof_dump.t to work with perl5.9.1.
      Fixed DBD_ATTRIB_DELETE macro thanks to Marco Paskamp.
      Fixed DBI::PurePerl looks_like_number() and $DBI::rows.
      Fixed ref($h)->can("foo") to not croak.

      Changed attributes (NAME, TYPE etc) of non-executed statement
        handle to be undef instead of triggering an error.
      Changed ShowErrorStatement to apply to more $dbh methods.
      Changed DBI_TRACE env var so just does this at load time:
        DBI->trace(split '=', $ENV{DBI_TRACE}, 2);
      Improved "invalid number of parameters" error message.
      Added DBI::common as base class for DBI::db, DBD::st etc.
      Moved methods common to all handles into DBI::common.

      Major driver additions that Jeff Zucker and I have been working on:

      Added DBI::SQL::Nano a 'smaller than micro' SQL parser
        with an SQL::Statement compatible API. If SQL::Statement
        is installed then DBI::SQL::Nano becomes an empty subclass
        of SQL::Statement, unless the DBI_SQL_NANO env var is true.
      Added DBD::File, modified to use DBI::SQL::Nano.
      Added DBD::DBM, an SQL interface to DBM files using DBD::File.

      Major tracing enhancement:

      Added $h->parse_trace_flags("foo|SQL|7") to map a group of
        trace flags into the corresponding trace flag bits.
      Added automatic calling of parse_trace_flags() if
        setting the trace level to a non-numeric value:
        $h->{TraceLevel}="foo|SQL|7"; $h->trace("foo|SQL|7");
        DBI->connect("dbi:Driver(TraceLevel=SQL|foo):...", ...);
        Currently no trace flags have been defined.
      Added to, and reworked, the trace documentation.
      Added dbivport.h for driver authors to use.

      Documentation changes:

      Corrected typos in docs thanks to Steffen Goeldner.
      Corrected execute_for_fetch example thanks to Dean Arnold.

    =cut

    Known issues (late breaking news):

      Harmless compiler warning about an assignment on some platforms.
      A couple of drivers are failing some tests:
         DBD::Pg 1.32 fails one test, but it's harmless.
         DBD::Unify 0.30 fails two tests, one harmless, the other due to
           a problem with the private ScanLevel attribute.
      These will be addressed by the driver authors but meanwhile the
      drivers are still safe to install and use (except that using the
      ScanLevel attribute in DBD::Unify may cause problems).

    Enjoy!

    Tim.


  • Next message: Matthew O. Persico: "DBD::Sybase and packet sizes"

    Relevant Pages