Commit graph

42 commits

Author SHA1 Message Date
grant
908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00
he
35b4f0a31c Update p5-DBI from version 1.41 to 1.46.
Change log:

Changes in DBI 1.46 (svn rev 584),    16th November 2004

  Fixed parsing bugs in DBI::SQL::Nano thanks to Jeff Zucker.
  Fixed a couple of bad links in docs thanks to Graham Barr.
  Fixed test.pl Win32 undef warning thanks to H.Merijn Brand & David Repko.
  Fixed minor issues in DBI::DBD::Metadata thanks to Steffen Goeldner.
  Fixed DBI::PurePerl neat() to use double quotes for utf8.

  Changed execute_array() definition, and default implementation,
    to not consider scalar values for execute tuple count. See docs.
  Changed DBD::File to enable ShowErrorStatement by default,
    which affects DBD::File subclasses such as DBD::CSV and DBD::DBM.
  Changed use DBI qw(:utils) tag to include $neat_maxlen.
  Updated Roadmap and ToDo.

  Added data_string_diff() data_string_desc() and data_diff()
    utility functions to help diagnose Unicode issues.
    All can be imported via the use DBI qw(:utils) tag.


Changes in DBI 1.45 (svn rev 480),    6th October 2004

  Fixed DBI::DBD code for drivers broken in 1.44.
  Fixed "Free to wrong pool"/"Attempt to free unreferenced scalar" in FETCH.


Changes in DBI 1.44 (svn rev 478),    5th October 2004

  Fixed build issues on VMS thanks to Jakob Snoer.
  Fixed DBD::File finish() method to return 1 thanks to Jan Dubois.
  Fixed rare core dump during global destruction thanks to Mark Jason Dominus.
  Fixed risk of utf8 flag persisting from one row to the next.

  Changed bind_param_array() so it doesn't require all bind arrays
    to have the same number of elements.
  Changed bind_param_array() to error if placeholder number <= 0.
  Changed execute_array() definition, and default implementation,
    to effectively NULL-pad shorter bind arrays.
  Changed execute_array() to return "0E0" for 0 as per the docs.
  Changed execute_for_fetch() definition, and default implementation,
    to return "0E0" for 0 like execute() and execute_array().
  Changed Test::More prerequisite to Test::Simple (which is also the name
    of the distribution both are packaged in) to work around ppm behaviour.

  Corrected docs to say that get/set of unknown attribute generates
    a warning and is no longer fatal. Thanks to Vadim.
  Corrected fetchall_arrayref() docs example thanks to Drew Broadley.

  Added $h1->swap_inner_handle($h2) sponsored by BizRate.com


Changes in DBI 1.43 (svn rev 377),    2nd July 2004

  Fixed connect() and connect_cached() RaiseError/PrintError
    which would sometimes show "(no error string)" as the error.
  Fixed compiler warning thanks to Paul Marquess.
  Fixed "trace level set to" trace message thanks to H.Merijn Brand.
  Fixed DBD::DBM $dbh->{dbm_tables}->{...} to be keyed by the
    table name not the file name thanks to Jeff Zucker.
  Fixed last_insert_id(...) thanks to Rudy Lippan.
  Fixed propagation of scalar/list context into proxied methods.
  Fixed DBI::Profile::DESTROY to not alter $@.
  Fixed DBI::ProfileDumper new() docs thanks to Michael Schwern.
  Fixed _load_class to propagate $@ thanks to Drew Taylor.
  Fixed compile warnings on Win32 thanks to Robert Baron.
  Fixed problem building with recent versions of MakeMaker.
  Fixed DBD::Sponge not to generate warning with threads.
  Fixed DBI_AUTOPROXY to work more than once thanks to Steven Hirsch.

  Changed TraceLevel 1 to not show recursive/nested calls.
  Changed getting or setting an invalid attribute to no longer be
    a fatal error but generate a warning instead.
  Changed selectall_arrayref() to call finish() if
    $attr->{MaxRows} is defined.
  Changed all tests to use Test::More and enhanced the tests thanks
    to Stevan Little and Andy Lester. See http://qa.perl.org/phalanx/
  Changed Test::More minimum prerequisite version to 0.40 (2001).
  Changed DBI::Profile header to include the date and time.

  Added DBI->parse_dsn($dsn) method.
  Added warning if build directory path contains whitespace.
  Added docs for parse_trace_flags() and parse_trace_flag().
  Removed "may change" warnings from the docs for table_info(),
    primary_key_info(), and foreign_key_info() methods.

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 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.

  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.

  Documentation changes:

  Corrected typos in docs thanks to Steffen Goeldner.
  Corrected execute_for_fetch example thanks to Dean Arnold.
2004-12-05 17:16:47 +00:00
wiz
4237d54a34 Unused. 2004-07-06 22:41:15 +00:00
jlam
7db11b582a Fix serious bug where BUILDLINK_PACKAGES wasn't being ordered properly
by moving the inclusion of buildlink3.mk files outside of the protected
region.  This bug would be seen by users that have set PREFER_PKGSRC
or PREFER_NATIVE to non-default values.

BUILDLINK_PACKAGES should be ordered so that for any package in the
list, that package doesn't depend on any packages to the left of it
in the list.  This ordering property is used to check for builtin
packages in the correct order.  The problem was that including a
buildlink3.mk file for <pkg> correctly ensured that <pkg> was removed
from BUILDLINK_PACKAGES and appended to the end.  However, since the
inclusion of any other buildlink3.mk files within that buildlink3.mk
was in a region that was protected against multiple inclusion, those
dependencies weren't also moved to the end of BUILDLINK_PACKAGES.
2004-03-18 09:12:08 +00:00
heinz
62a823ba6e Update to version 1.41.
Perl >= 5.6.0 is required now, so update buildlink2.mk and buildlink3.mk.
Add missing build-time dependence on Test::More (ie, Test::Simple).


Changes since 1.37
==================

CHANGES in DBI 1.41 (svn rev 130),    22nd February 2004
      Fixed execute_for_array() so tuple_status parameter is optional
        as per docs, thanks to Ed Avis.
      Fixed execute_for_array() docs to say that it returns undef if
        any of the execute() calls fail.
      Fixed take_imp_data() test on m68k reported by Christian Hammers.
      Fixed write_typeinfo_pm inconsistencies in DBI::DBD::Metadata
        thanks to Andy Hassall.
      Fixed $h->{TraceLevel} to not return DBI->trace trace level
        which it used to if DBI->trace trace level was higher.

      Changed set_err() to append to errstr, with a leading "\n" if it's
        not empty, so that multiple error/warning messages are recorded.
      Changed trace to limit elements dumped when an array reference is
        returned from a method to the max(40, $DBI::neat_maxlen/10)
        so that fetchall_arrayref(), for example, doesn't flood the trace.
      Changed trace level to be a four bit integer (levels 0 thru 15)
        and a set of topic flags (no topics have been assigned yet).
      Changed column_info() to check argument count.
      Extended bind_param() TYPE attribute specification to imply
        standard formating of value, eg SQL_DATE implies 'YYYY-MM-DD'.

      Added way for drivers to indicate 'success with info' or 'warning'
        by setting err to "0" for warning and "" for information.
        Both values are false and so don't trigger RaiseError etc.
        Warnings (err="0") are automatically printed if PrintError is set.
        Thanks to Steffen Goeldner for the original idea.
      Added $h->{HandleSetErr} = sub { ... } to be called at the
        point that an error, warn, or info state is recorded.
        The code can alter the err, errstr, and state values
        (e.g., to promote an error to a warning, or the reverse).
      Added $h->{PrintWarn} attribute to enable printing of warnings
        recorded by the driver. Defaults to same value as $^W (perl -w).
      Added $h->{ErrCount} attribute, incremented whenever an error is
        recorded by the driver via set_err().
      Added $h->{Executed} attribute, set if do()/execute() called.
      Added \%attr parameter to foreign_key_info() method.
      Added ref count of inner handle to "DESTROY ignored for outer" msg.
      Added Win32 build config checks to DBI::DBD thanks to Andy Hassall.
      Added bind_col to Driver.xst so drivers can define their own.
      Added TYPE attribute to bind_col and specified the expected
        driver behaviour.

      Major update to signal handling docs thanks to Lincoln Baxter.
      Corrected dbiproxy usage doc thanks to Christian Hammers.
      Corrected type_info_all index hash docs thanks to Steffen Goeldner.
      Corrected type_info COLUMN_SIZE to chars not bytes thanks to Dean Arnold.
      Corrected get_info() docs to include details of DBI::Const::GetInfoType.
      Clarified that $sth->{PRECISION} is OCTET_LENGTH for char types.

  Changes in DBI 1.40,    7th January 2004

      Fixed handling of CachedKids when DESTROYing threaded handles.
      Fixed sql_user_name() in DBI::DBD::Metadata (used by write_getinfo_pm)
        to use $dbh->{Username}. Driver authors please update your code.

      Changed connect_cached() when running under Apache::DBI
        to route calls to Apache::DBI::connect().

      Added CLONE() to DBD::Sponge and DBD::ExampleP.
      Added warning when starting a new thread about any loaded driver
        which does not have a CLONE() function.
      Added new prepare_cache($sql, \%attr, 3) option to manage Active handles.
      Added SCALE and NULLABLE support to DBD::Sponge.
      Added missing execute() in fetchall_hashref docs thanks to Iain Truskett.
      Added a CONTRIBUTING section to the docs with notes on creating patches.

  Changes in DBI 1.39,    27th November 2003

      Fixed STORE to not clear error during nested DBI call, again/better,
        thanks to Tony Bowden for the report and helpful test case.
      Fixed DBI dispatch to not try to use AUTOLOAD for driver methods unless
        the method has been declared (as methods should be when using AUTOLOAD).
        This fixes a problem when the Attribute::Handlers module is loaded.
      Fixed cwd check code to use $Config{path_sep} thanks to Steve Hay.
      Fixed unqualified croak() calls thanks to Steffen Goeldner.
      Fixed DBD::ExampleP TYPE and PRECISION attributes thanks to Tom Lowery.
      Fixed tracing of methods that only get traced at high trace levels.

      The level 1 trace no longer includes nested method calls so it generally
        just shows the methods the application explicitly calls.
      Added line to trace log (level>=4) when err/errstr is cleared.
      Updated docs for InactiveDestroy and point out where and when the
        trace includes the process id.
      Update DBI::DBD docs thanks to Steffen Goeldner.
      Removed docs saying that the DBI->data_sources method could be
        passed a $dbh. The $dbh->data_sources method should be used instead.
      Added link to 'DBI recipes' thanks to Giuseppe Maxia:
        http://gmax.oltrelinux.com/dbirecipes.html (note that this
        is not an endorsement that the recipies are 'optimal')

      Note: There is a bug in perl 5.8.2 when configured with threads
      and debugging enabled (bug #24463) which causes a DBI test to fail.

  Changes in DBI 1.38,    21th August 2003

      NOTE: The DBI now requires perl version 5.6.0 or later.
      (As per notice in DBI 1.33 released 27th February 2003)

      Fixed spurious t/03handles failure on 64bit perls reported by H.Merijn Brand.
      Fixed spurious t/15array failure on some perl versions thanks to Ed Avis.
      Fixed build using dmake on windows thanks to Steffen Goeldner.
      Fixed build on using some shells thanks to Gurusamy Sarathy.
      Fixed ParamValues to only be appended to ShowErrorStatement if not empty.
      Fixed $dbh->{Statement} not being writable by drivers in some cases.
      Fixed occasional undef warnings on connect failures thanks to Ed Avis.
      Fixed small memory leak when using $sth->{NAME..._hash}.
      Fixed 64bit warnings thanks to Marian Jancar.
      Fixed DBD::Proxy::db::DESTROY to not alter $@ thanks to Keith Chapman.
      Fixed Makefile.PL status from WriteMakefile() thanks to Leon Brocard.

      Changed "Can't set ...->{Foo}: unrecognised attribute" from an error to a
        warning when running with DBI::ProxyServer to simplify upgrades.
      Changed execute_array() to no longer require ArrayTupleStatus attribute.
      Changed DBI->available_drivers to not hide DBD::Sponge.
      Updated/moved placeholder docs to a better place thanks to Johan Vromans.
      Changed dbd_db_do4 api in Driver.xst to match dbd_st_execute (return int,
        not bool), relevant only to driver authors.
      Changed neat(), and thus trace(), so strings marked as utf8 are presented
        in double quotes instead of single quotes and are not sanitized.

      Added $dbh->data_sources method.
      Added $dbh->last_insert_id method.
      Added $sth->execute_for_fetch($fetch_tuple_sub, \@tuple_status) method.
      Added DBI->installed_versions thanks to Jeff Zucker.
      Added $DBI::Profile::ON_DESTROY_DUMP variable.
      Added docs for DBD::Sponge thanks to Mark Stosberg.
2004-03-12 22:01:08 +00:00
jlam
9ff0e10340 Reorder location and setting of BUILDLINK_PACKAGES to match template
buildlink3.mk file in revision 1.101 of bsd.buildlink3.mk.
2004-03-05 19:25:06 +00:00
snj
6bc35cda72 s/independant/independent/ 2004-02-13 23:34:15 +00:00
jlam
7d3aefb493 We want to buildlink all of the contents of the arch-dependent directory
for Perl5 modules.
2004-01-27 12:24:55 +00:00
jlam
a7d877ca6a Append to BUILDLINK_DEPENDS.<pkg> instead of setting a default value. In
the normal case when BUILDLINK_DEPENDS.<pkg> isn't specified, it receives
a value only once due to the multiple inclusion protection in the
bulldlink3.mk files.  In the case where a package includes several
buildlink3.mk files that each want a slightly different version of another
dependency, having BUILDLINK_DEPENDS.<pkg> be a list allows for the
strictest <pkg> dependency to be matched.
2004-01-24 03:26:45 +00:00
jlam
848d6eb2a3 bl3ify 2004-01-05 22:16:24 +00:00
jlam
d279e6f535 Use S/+$// instead of C/\+$// to save a backslash. Very highly
recommended by seb :)
2004-01-05 11:05:44 +00:00
jlam
47bb2aae5f Re-arrange to match example buildlink3.mk file in bsd.buildlink3.mk. 2004-01-04 23:34:04 +00:00
jlam
339cd13cb2 Initial sprinkling of work-in-progress buildlink3.mk files for using the
buildlink3 framework.
2004-01-03 23:06:43 +00:00
martti
e69ab8c365 COMMENT should start with a capital letter. 2003-07-21 16:35:12 +00:00
grant
91f00f1cbc s/netbsd.org/NetBSD.org/ 2003-07-17 21:21:03 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
mjl
314b106e16 Update p5-DBI to 1.37
Fixed "Can't get dbh->{Statement}: unrecognised attribute" error
  Fixed DBI->connect to carp instead of croak on 'old-style' usage.
  Fixed connect(,,, { RootClass => $foo }) to not croak if module not found.
  Fixed code generated by DBI::DBD::Metadata
  Fixed DBI::PurePerl to not reset $@ during method dispatch.
  Fixed Proxy disconnect
  Fixed error in DBI::DBD docs
  Changed t/40profile.t to not require Time::HiRes.
  Changed execute_array() return value from row count to executed
    tuple count, and now the ArrayTupleStatus attribute is mandatory.
    NOTE: That is an API definition change that may affect your code.
  Changed CompatMode attribute to also disable attribute 'quick FETCH'.
  Changed attribute FETCH to be slightly faster
  Added workaround for perl bug #17575 tied hash nested FETCH
  Added Username and Password attributes to connect(..., \%attr) and so
    also embedded in DSN like "dbi:Driver(Username=user,Password=pass):..."
    Username and Password can't contain ")", ",", or "=" characters.
    The predence is DSN first, then \%attr, then $user & $pass parameters,
    and finally the DBI_USER & DBI_PASS environment variables.
    The Username attribute is stored in the $dbh but the Password is not.
  Added ProxyServer HOWTO configure restrictions docs
  Added MaxRows attribute to selectcol_arrayref
  Added dump_handle as a method not just a DBI:: utility function.
  Added on-demand by-row data feed into execute_array() using code ref,
    or statement handle. For example, to insert from a select:
    $insert_sth->execute_array( { ArrayTupleFetch => $select_sth, ... } )
  Added warning to trace log when $h->{foo}=... is ignored due to
    invalid prefix (e.g., not 'private_').
2003-05-30 09:34:30 +00:00
heinz
e1a4a4dc75 Homepage was permanently moved to dbi.perl.org 2003-03-23 02:48:16 +00:00
mjl
620e86c9af Update p5-DBI to 1.35
Fixed memory leak in fetchrow_hashref introduced in DBI 1.33.
  Fixed various DBD::Proxy errors introduced in DBI 1.33.
  Fixed to ANSI C in dbd_dr_data_sources
  Fixed $h->can($method_name) to return correct code ref.
  Removed DBI::Format from distribution as it's now part of the
    separate DBI::Shell distribution
  Updated DBI::DBD docs with a note about the CLONE method.
  Updated DBI::DBD docs
  Updated DBI::DBD::Metadata for perl 5.5.3
  Added note to install_method docs about setup_driver() method.
2003-03-16 15:46:47 +00:00
mjl
c27b786f57 Update p5-DBI to 1.34
Fixed DBI::DBD docs to refer to DBI::DBD::Metadata
  Fixed disconnect_all() to not be required by drivers.
  Added $okay = $h->can($method_name) to check if a method exists.
  Added DBD::*::*->install_method($method_name, \%attr) so driver private
    methods can be 'installed' into the DBI dispatcher and no longer
    need to be called using $h->func(..., $method_name).
  Enhanced $dbh->clone() and documentation.
  Removed old DBI::Shell from distribution and added Tom Lowery's improved
    version to the Bundle::DBI file.
  Updated minimum version numbers for modules in Bundle::DBI.
  Added $dbh2 = $dbh1->clone to make a new connection to the database
    that is identical to the original one. clone() can be called even after
    the original handle has been disconnected. See the docs for more details.
  Fixed unescaping of newlines in DBI::ProfileData
  Fixed Taint bug with fetchrow_hashref
  Fixed $dbh->{Active} for DBD::Proxy
  Fixed STORE to not clear error during nested DBI call
  Fixed DBI::PurePerl error clearing behaviour.
  Fixed problem that meant ShowErrorStatement could show wrong statement
  Changed Apache::DBI hook to check for $ENV{MOD_PERL} instead of
    $ENV{GATEWAY_INTERFACE} thanks to Ask Bjoern Hansen.
  No longer tries to dup trace logfp when an interpreter is being cloned.
  Database handles no longer inherit shared $h->err/errstr/state storage
    from their drivers, so each $dbh has it's own $h->err etc. values
    and is no longer affected by calls made on other dbh's.
    Now when a dbh is destroyed it's err/errstr/state values are copied
    up to the driver so checking $DBI::errstr still works as expected.
  Documentation changes:
    Documented $high_resolution_time = dbi_time() function.
    Documented that bind_col() can take an atribute hash.
    Clarified documentation for ParamValues attribute hash keys.
    Many good DBI documentation tweaks
      including a major update to the DBI::DBD driver author guide.
    Clarified that execute() should itself call finish() if it's
      called on a statement handle that's still active.
    Clarified $sth->{ParamValues}. Driver authors please note.
    Removed "NEW" markers on some methods and attributes and
      added text to each giving the DBI version it was added in,
      if it was added after DBI 1.21 (Feb 2002).
  Fixed to work with 5.005_03 (I've not tested it).
  Reenabled taint tests (accidentally left disabled)
  Improved docs for FetchHashKeyName attribute
  Fixed core dump if fetchrow_hashref given bad argument (name of attribute
    with a value that wasn't an array reference)
  Fixed some compiler warnings
  Updated Steven Hirsch's enhanced proxy work (seems I left out a bit).
  The fetchall_arrayref method, when called with a $maxrows parameter,
    no longer gives an error if called again after all rows have been
    fetched. This simplifies application logic when fetching in batches.
    Also added batch-fetch while() loop example to the docs.
  The proxy now supports non-lazy (synchronous) prepare, positioned
    updates (for selects containing 'for update'), PlRPC config set
    via attributes, and accurate propagation of errors
  The DBI_AUTOPROXY env var can now hold the full dsn of the proxy driver
    plus attributes, like "dbi:Proxy(proxy_foo=>1):host=...".
  Added TaintIn & TaintOut attributes to give finer control over
    tainting
  The RootClass attribute no longer ignores failure to load a module,
    but also doesn't try to load a module if the class already exists
  HandleError attribute works for connect failures
  The connect() RaiseError/PrintError message now includes the username.
  Changed "last handle unknown or destroyed" warning to be a trace message.
  Removed undocumented $h->event() method.
  Further enhancements to DBD::PurePerl accuracy.
  The CursorName attribute now defaults to undef and not an error.
2003-03-06 12:53:05 +00:00
seb
59f516a51b Use perl5/module.mk. 2002-10-13 22:02:55 +00:00
jlam
7ba8964771 Add a buildlink2.mk file for other packages to use, as p5-DBI provides
headers needed by other packages.
2002-09-20 00:43:33 +00:00
jlam
d5181a8166 buildlink1 -> buildlink2 2002-09-20 00:30:22 +00:00
mjl
238497d9d2 Update p5-DBI to 1.30.
Most notable changes:

  Fixed problems with selectrow_array, selectrow_arrayref, and
    selectall_arrayref introduced in DBI 1.29.
  The trace output can be sent to STDOUT instead of STDERR by using
    "STDOUT" as the name of the file, i.e., $h->trace(..., "STDOUT")
  Added $sth->{ParamValues} to return a hash of the most recent
    values bound to placeholders via bind_param() or execute().
  Enhanced ShowErrorStatement to include ParamValues if available:
    "DBD::foo::st execute failed: errstr [for statement ``...'' with params: 1='foo']"
  Fixed missing column in C implementation of fetchall_arrayref()
  Added C implementations of selectrow_arrayref() and fetchall_arrayref()
    in Driver.xst.  All compiled drivers using Driver.xst will now be
    faster making those calls.
    Drivers just need to be recompiled and reinstalled to enable it.
  Added $max_rows parameter to fetchall_arrayref() to optionally limit
    the number of rows returned. Can now fetch batches of rows.
  Added MaxRows attribute to selectall_arrayref()
    which then passes it to fetchall_arrayref().
  Documented that $h->func() does not trigger RaiseError etc
    so applications must explicitly check for errors.
  HandleError subroutine interface is now regarded as stable.
  Fixed reference loop causing a handle/memory leak
    that was introduced in DBI 1.16.
  Fixed DBI::Format to work with 'filehandles' from IO::Scalar
    and similar modules
  Fixed $h->func for DBI::PurePerl
  Fixed $dbh->{Name} for DBI::PurePerl
  Added DBI method call profiling and benchmarking.
  Added execute_array() and bind_param_array() documentation
  Removed undocumented Handlers attribute (replaced by HandleError).
  Greatly improved DBI::PurePerl in performance and accuracy.
  Added DBI::PurePerl, a transparent DBI emulation for pure-perl drivers
    See Perldoc DBI::PurePerl for details.
  Added DBI::Const::GetInfo* modules
  Added write_getinfo_pm utility to DBI::DBD
  Added $allow_active==2 mode for prepare_cached()
  Extend $h->{Warn} to commit/rollback ineffective warning
2002-08-21 00:30:20 +00:00
mjl
12532193d2 Update p5-DBI to 1.21
Fixed DBD::Proxy support for AutoCommit
  Fixed DBI::ProxyServer bind_param(_inout) handling
  Fixed DBI::ProxyServer fetch loop
  Fixed install_driver do-the-right-thing with $@ on error. It, and connect(),
    will leave $@ empty on success and holding the error message on error.
  Fixed fetchrow_hashref to assign columns to the hash left-to-right
    so later fields with the same name overwrite earlier ones
    as per DBI < 1.15
  Changed tables() to use quote_indentifier() if the driver returns a
    true value for $dbh->get_info(29) # SQL_IDENTIFIER_QUOTE_CHAR
  Changed ping() so it no longer triggers RaiseError/PrintError.
  Changed connect() to not call $class->install_driver unless needed.
  Changed DESTROY to catch fatal exceptions and append to $@.
  Added ISO SQL/CLI & ODBCv3 data type definitions
  Removed the definition of SQL_BIGINT data type constant as the value is
    inconsistent between standards (ODBC=-5, SQL/CLI=25).
  Added $dbh->column_info(...)
  Added $dbh->foreign_key_info(...)
  Added $dbh->quote_identifier(...)
  Added $h->{HandleError} = sub { ... } addition and/or alternative
    to RaiseError/PrintError.
  Added Fowler/Noll/Vo hash type as an option to DBI::hash().
  Added DBI::Changes so now you can "perldoc DBI::Changes", yeah!
  Added selectrow_arrayref & selectrow_hashref docs
2002-02-14 15:50:05 +00:00
explorer
d7017509b6 upgrade DBI from 1.19 to 1.20 to fix a nasty memory leak 2001-12-05 17:36:39 +00:00
jlam
cc4128d97e Buildlinkify, in the sense that only the perl headers are found in
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
2001-11-26 06:49:36 +00:00
zuntum
0ca28723fb Move pkg/ files into package's toplevel directory 2001-11-01 00:11:36 +00:00
veego
63ad910dee SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
2001-10-18 15:20:01 +00:00
mjl
ae5a74641d Update to 1.19
Made fetchall_arrayref({ foo=>1, ...}) be more strict to the specification
    in relation to wanting hash slice keys to be lowercase names.
  Fixed $sth->execute() to update $dbh->{Statement} to $sth->{Statement}.
  Added row number to trace output for fetch method calls.
  Added $h->{FetchHashKeyName} = 'NAME_lc' or 'NAME_uc' to alter
    behaviour of fetchrow_hashref() method. See docs.
  Added type_info quote caching to quote() method
    Makes using quote() with second data type param much much faster.
  Added type_into_all() caching to type_info()
  Added new API definition for table_info() and tables(),
  Added primary_key_info() to DBI API
  Added primary_key() to DBI API as simpler interface to primary_key_info().
  Indent and other fixes for DBI::DBD doc
  Added prepare_cached() insert_hash() example
  Removed false docs for fetchall_hashref(), use fetchall_arrayref({}).
2001-08-10 11:49:04 +00:00
mjl
2a8c0cd72b Updated to 1.18
Fixed that altering ShowErrorStatement also altered AutoCommit!
  Fixed DBD::Proxy to handle commit() and rollback(). Long overdue, sorry.
  Fixed incompatibility with perl 5.004 (but no one's using that right? :)
  Fixed connect_cached and prepare_cached to not be affected by the order
    of elements in the attribute hash.
  Fixed version number of DBI::Shell
  Defined and documented table_info() attribute semantics (ODBC compatible)
2001-06-10 13:52:45 +00:00
mjl
b66c2b8d9f Updated to 1.16.
Reimplemented fetchrow_hashref in C, now fetches about 25% faster!
  Changed behaviour if both PrintError and RaiseError are enabled
    to simply do both (in that order, obviously :)
  Slight reduction in DBI handle creation overhead
  Fixed $dbh->{Driver} & $sth->{Database} to return 'outer' handles.
  Fixed execute param count check to honour RaiseError
  Fixed build for perl5.6.1 with PERLIO
  Fixed client sql restrictions in ProxyServer.pm
  Fixed batch mode command parsing in Shell
  Fixed typo in selectcol_arrayref docs
  Fixed selectrow_hashref to be available to callers
  Fixed core dump if statement handle didn't define Statement attribute
  Added bind_param_inout docs to DBI::DBD
  Added note to data_sources() method docs that some drivers may
    require a connected database handle to be supplied as an attribute
  Trace of install_driver method now shows path of driver file loaded
  Changed many '||' to 'or' in the docs
  Updated DBD::ADO again (improvements in error handling)
  Updated Win32::DBIODBC (Win32::ODBC emulation)
  Updated email and web addresses in DBI::FAQ
2001-06-02 14:50:35 +00:00
agc
6ef28d06c5 Move to sha1 digests, and add distfile sizes. 2001-04-18 16:10:56 +00:00
agc
5092342d3d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
+ include distfile filesizes in distinfo
2001-04-17 09:56:50 +00:00
mjl
d5775fd64f Update to 1.15. Notable changes:
Added selectrow_arrayref, selectrow_hashref, selectall_hashref
  Added DBI->connect(..., { dbi_connect_method => 'method' })
  Added $h->{ShowErrorStatement}=1 to cause the appending of the
    relevant Statement text to the RaiseError/PrintError text.
  Trace method uses warn() if it can't open the new file.
  Trace shows source line and filename during global destruction.
  Documentation:
    Documented $DBI::lasth (which has been there since day 1).
    Documented SQL_* names.
    Clarified and extended docs for $h->state
    Clarified fetchall_arrayref({}) docs
    Clarified type_info_all re lettercase and index values.
    Updated DBI::FAQ to 0.38
    Added cute bind_columns example
    Extended docs on \%attr arg to data_sources method.
  Proxy:
    Removed debug messages from DBD::Proxy AUTOLOAD
    Added fix for problem using table_info
    Added better determination of where to put the pid file
    Added KNOWN ISSUES section to DBD::Proxy docs
  Known issues:
    Perl 5.005 and 5.006 both leak memory doing local($handle->{Foo}).
    Perl 5.004 doesn't. The leak is not a DBI or driver bug.
2001-04-13 15:06:11 +00:00
wiz
417e8bbabf Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 14:17:22 +00:00
mjl
21b85e4fd6 Update to 1.14.
NOTE: This version is the one the DBI book is based on.
  NOTE: This version requires at least Perl 5.004.
  Perl 5.6 ithreads changes with thanks to Doug MacEachern.
  Changed trace output to use PerlIO thanks to Paul Moore.
  Fixed bug in RaiseError/PrintError handling.
    (% chars in the error string could cause a core dump.)
  Fixed Win32 PerlEx IIS concurrency bugs thanks to Murray Nesbitt.
  Major documentation polishing thanks to Linda Mui at O'Reilly.
  Password parameter now shown as **** in trace output.
  Added two fields to type_info and type_info_all.
  Added $dsn to PrintError/RaiseError message from DBI->connect().
  Changed prepare_cached() croak to carp if sth still Active.
  Added prepare_cached() example to the docs.
  Added further DBD::ADO enhancements from Thomas Lowery.
2000-12-07 08:10:40 +00:00
jlam
c70c96f2c8 Convert packages to use PERL5_PACKLIST (part 2). These are the database and
Apache perl modules, and each compiled and installed/de-installed apparently
correctly.

As a side effect of the dynamic PLIST, we no longer need to to have separate
-static and -shared PLISTs.  It's now easier than ever to make a perl5
package for NetBSD :)
2000-08-27 10:37:00 +00:00
christos
6f8635fa1b update to 1.13:
Changes in DBI 1.13,    11th July 1999

  Fixed Win32 PerlEx IIS concurrency bugs thanks to ActiveState.
  Fixed problems with DBD::ExampleP long_list test mode.
  Added SQL_WCHAR SQL_WVARCHAR SQL_WLONGVARCHAR and SQL_BIT
    to list of known and exportable SQL types.
  Improved data fetch performance of DBD::ADO.
  Added GetTypeInfo to DBD::ADO thanks to Thomas Lowery.
  Actually documented connect_cached thanks to Michael Schwern.
  Fixed user/key/cipher bug in ProxyServer thanks to Joshua Pincus.

Changes in DBI 1.12,    29th June 1999

  Fixed significant DBD::ADO bug (fetch skipped first row).
  Fixed ProxyServer bug handling non-select statements.
  Fixed VMS problem with t/examp.t thanks to Craig Berry.
  Trace only shows calls to trace_msg and _set_fbav at high levels.
  Modified t/examp.t to workaround Cygwin buffering bug.

Changes in DBI 1.11,    17th June 1999

  Fixed bind_columns argument checking to allow a single arg.
  Fixed problems with internal default_user method.
  Fixed broken DBD::ADO.
  Made default $DBI::rows more robust for some obscure cases.

Changes in DBI 1.10,    14th June 1999

  Fixed trace_msg.al error when using Apache.
  Fixed dbd_st_finish enhancement in Driver.xst (internals).
  Enable drivers to define default username and password
    and temporarily disabled warning added in 1.09.
  Thread safety optimised for single thread case.

Changes in DBI 1.09,    9th June 1999

  Added optional minimum trace level parameter to trace_msg().
  Added warning in Makefile.PL that DBI will require 5.004 soon.
  Added $dbh->selectcol_arrayref($statement) method.
  Fixed fetchall_arrayref hash-slice mode undef NAME problem.
  Fixed problem with tainted parameter checking and t/examp.t.
  Fixed problem with thread safety code, including 64 bit machines.
  Thread safety now enabled by default for threaded perls.
  Enhanced code for MULTIPLICITY/PERL_OBJECT from ActiveState.
  Enhanced prepare_cached() method.
  Minor changes to trace levels (less internal info at level 2).
  Trace log now shows "!! ERROR..." before the "<- method" line.
  DBI->connect() now warn's if user / password is undefined and
    DBI_USER / DBI_PASS environment variables are not defined.
  The t/proxy.t test now ignores any /etc/dbiproxy.conf file.
  Added portability fixes for MacOS from Chris Nandor.
  Updated mailing list address from fugue.com to isc.org.
2000-05-11 18:37:06 +00:00
agc
79e0260c8f Correct a typo. 1999-07-01 08:04:36 +00:00
bad
a80c0473f0 Oops. The PLIST-mi contents were in the PLIST-md.shared file and vice versa.
Fix this and also get rid of the lib/perl5/site_perl/Bundle/DBD directory
on deinstall.
1999-06-10 18:28:19 +00:00
bad
c157346512 Initial import of DBI-1.08 the Perl database access API. 1999-06-10 12:46:35 +00:00