summaryrefslogtreecommitdiff
path: root/databases/p5-DBI
diff options
context:
space:
mode:
authorheinz <heinz>2004-03-12 22:01:08 +0000
committerheinz <heinz>2004-03-12 22:01:08 +0000
commit2558f8aa5ac294cb23b484d327200af9702b9ec0 (patch)
treeb7a3535520854804b0f37930675a454d00dadcc2 /databases/p5-DBI
parent500092fd73309230ac22275991e638a7792ebb41 (diff)
downloadpkgsrc-2558f8aa5ac294cb23b484d327200af9702b9ec0.tar.gz
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.
Diffstat (limited to 'databases/p5-DBI')
-rw-r--r--databases/p5-DBI/Makefile8
-rw-r--r--databases/p5-DBI/buildlink2.mk3
-rw-r--r--databases/p5-DBI/buildlink3.mk3
-rw-r--r--databases/p5-DBI/distinfo6
4 files changed, 13 insertions, 7 deletions
diff --git a/databases/p5-DBI/Makefile b/databases/p5-DBI/Makefile
index b06ed855381..017893b4e88 100644
--- a/databases/p5-DBI/Makefile
+++ b/databases/p5-DBI/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2004/01/05 22:16:24 jlam Exp $
+# $NetBSD: Makefile,v 1.25 2004/03/12 22:01:08 heinz Exp $
#
-DISTNAME= DBI-1.37
+DISTNAME= DBI-1.41
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5dbi
CATEGORIES= databases perl5
@@ -11,9 +11,13 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://dbi.perl.org/
COMMENT= The database-independent Perl database access API
+# Tests need Test::More
+BUILD_DEPENDS+= p5-Test-Simple-[0-9]*:../../devel/p5-Test-Simple
+
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= YES
+PERL5_REQD+= 5.6.0
PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/DBI/.packlist
.include "../../lang/perl5/module.mk"
diff --git a/databases/p5-DBI/buildlink2.mk b/databases/p5-DBI/buildlink2.mk
index 2d8ef0687c5..e6a0585fc28 100644
--- a/databases/p5-DBI/buildlink2.mk
+++ b/databases/p5-DBI/buildlink2.mk
@@ -1,8 +1,9 @@
-# $NetBSD: buildlink2.mk,v 1.1 2002/09/20 00:43:33 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.2 2004/03/12 22:01:08 heinz Exp $
.if !defined(P5_DBI_BUILDLINK2_MK)
P5_DBI_BUILDLINK2_MK= # defined
+PERL5_REQD+= 5.6.0
BUILDLINK_PACKAGES+= p5-DBI
BUILDLINK_DEPENDS.p5-DBI?= p5-DBI>=1.30
BUILDLINK_PKGSRCDIR.p5-DBI?= ../../databases/p5-DBI
diff --git a/databases/p5-DBI/buildlink3.mk b/databases/p5-DBI/buildlink3.mk
index 909e4b7a790..80c46a2c73a 100644
--- a/databases/p5-DBI/buildlink3.mk
+++ b/databases/p5-DBI/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.6 2004/03/05 19:25:09 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.7 2004/03/12 22:01:08 heinz Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
P5_DBI_BUILDLINK3_MK:= ${P5_DBI_BUILDLINK3_MK}+
@@ -11,6 +11,7 @@ BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Np5-DBI}
BUILDLINK_PACKAGES+= p5-DBI
.if !empty(P5_DBI_BUILDLINK3_MK:M+)
+PERL5_REQD+= 5.6.0
BUILDLINK_DEPENDS.p5-DBI+= p5-DBI>=1.30
BUILDLINK_PKGSRCDIR.p5-DBI?= ../../databases/p5-DBI
BUILDLINK_INCDIRS.p5-DBI?= ${PERL5_SUB_INSTALLSITEARCH}/auto/DBI
diff --git a/databases/p5-DBI/distinfo b/databases/p5-DBI/distinfo
index 94caacc3c7d..c981743d15e 100644
--- a/databases/p5-DBI/distinfo
+++ b/databases/p5-DBI/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2003/05/30 09:34:30 mjl Exp $
+$NetBSD: distinfo,v 1.12 2004/03/12 22:01:08 heinz Exp $
-SHA1 (DBI-1.37.tar.gz) = 993804a3228316c5b4b594ba1302ea9283c099b6
-Size (DBI-1.37.tar.gz) = 294495 bytes
+SHA1 (DBI-1.41.tar.gz) = 4235cb1a88e9083714518c1c2fc9b313542c201b
+Size (DBI-1.41.tar.gz) = 315539 bytes