@@ -1,5 +1,10 @@
Revision history for ApacheDBI.
+1.08 February 3rd, 2010
+ - Fix bug to allow DBI in startup.pl etc again
+ Bug report from Adam Prime, patch from Lubomir Rintel
+ https://rt.cpan.org/Public/Bug/Display.html?id=36346
+
1.07 05/09/2008
- http://rt.cpan.org/Public/Bug/Display.html?id=31003
Submitted by: diafour@gmail.com
@@ -11,7 +16,7 @@ Revision history for ApacheDBI.
- http://rt.cpan.org/Public/Bug/Display.html?id=28824
Documentation Additions
- Submitted by: [Perrin Hawkins <perrin@elem.com>]
+ Submitted by: [Perrin Harkins <perrin@elem.com>]
1.06 03/23/2007
- MP2/AuthDBI: Fixed Apache::AuthDBI::debug() to
@@ -1,14 +1,24 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: Apache-DBI
-version: 1.07
-version_from: lib/Apache/DBI.pm
-installdirs: site
+--- #YAML:1.0
+name: Apache-DBI
+version: 1.08
+abstract: ~
+author: []
+license: unknown
+distribution_type: module
+configure_requires:
+ ExtUtils::MakeMaker: 0
+build_requires:
+ ExtUtils::MakeMaker: 0
requires:
- DBI: 1
- Digest::MD5: 2.2
- Digest::SHA1: 2.01
- Test::More: 0
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.30
+ DBI: 1
+ Digest::MD5: 2.2
+ Digest::SHA1: 2.01
+ Test::More: 0
+no_index:
+ directory:
+ - t
+ - inc
+generated_by: ExtUtils::MakeMaker version 6.55_02
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
@@ -1,7 +1,7 @@
DESCRIPTION:
------------
-This is version 1.07 of Apache::AuthDBI and Apache::DBI.
+This is version 1.08 of Apache::AuthDBI and Apache::DBI.
These modules are supposed to be used with the Apache server together with
an embedded perl interpreter like mod_perl. They provide support for basic
@@ -1,10 +1,10 @@
-Showstoppers for 1.07:
-----------------------
-Migrate test suite to 1.07
+Showstoppers
+------------
+Migrate test suite [ ?? ]
-Nice to have for 1.07:
------------------------
+Nice to have
+------------
Add tests for other DBDs starting with PostgreSQL.
@@ -1,7 +1,7 @@
-# $Id: AuthDBI.pm 11230 2008-05-09 22:46:56Z pgollucci@p6m7g8.com $
+# $Id$
package Apache::AuthDBI;
-$Apache::AuthDBI::VERSION = '1.07';
+$Apache::AuthDBI::VERSION = '1.08';
# 1: report about cache miss
# 2: full debug output
@@ -1,4 +1,4 @@
-# $Id: DBI.pm 11230 2008-05-09 22:46:56Z pgollucci@p6m7g8.com $
+# $Id$
package Apache::DBI;
use strict;
@@ -22,7 +22,7 @@ use Carp ();
require_version DBI 1.00;
-$Apache::DBI::VERSION = '1.07';
+$Apache::DBI::VERSION = '1.08';
# 1: report about new connect
# 2: full debug output
@@ -141,7 +141,9 @@ sub connect {
if (!$Rollback{$Idx}) {
my $r;
if (MP2) {
- $r = Apache2::RequestUtil->request;
+ # We may not actually be in a request, but in <Perl> (or
+ # equivalent such as startup.pl), in which case this would die.
+ eval { $r = Apache2::RequestUtil->request };
}
elsif (Apache->can('push_handlers')) {
$r = 'Apache';