Fixed failing test. Incremented version number for 0.92 release.
David Wheeler
19 years ago
0 | 0 |
Revision history for Perl extension Exception::Class::DBI.
|
|
1 |
|
|
2 |
0.92 2004-06-17T17:42:37
|
|
3 |
- Fixed test that was breaking with newer versions of DBI.
|
1 | 4 |
|
2 | 5 |
0.91 Tue Aug 26 02:25:56 2003
|
3 | 6 |
- Switched to Module::Build.
|
0 | 0 |
--- #YAML:1.0
|
1 | 1 |
name: Exception-Class-DBI
|
2 | |
version: 0.91
|
|
2 |
version: 0.92
|
|
3 |
author:
|
|
4 |
- David Wheeler <david@wheeler.net>
|
|
5 |
abstract: DBI Exception objects
|
3 | 6 |
license: perl
|
4 | |
distribution_type: module
|
5 | 7 |
requires:
|
6 | 8 |
DBI: 1.28
|
7 | 9 |
Exception::Class: 1.02
|
8 | |
recommends: {}
|
9 | 10 |
build_requires:
|
10 | 11 |
Test::Harness: 2.03
|
11 | 12 |
Test::Simple: 0.17
|
12 | |
conflicts: {}
|
13 | 13 |
provides:
|
14 | 14 |
Exception::Class::DBI:
|
15 | 15 |
file: lib/Exception/Class/DBI.pm
|
16 | |
version: 0.91
|
17 | |
generated_by: Module::Build version 0.19_05
|
|
16 |
version: 0.92
|
|
17 |
generated_by: Module::Build version 0.25_01
|
0 | |
Exception/Class/DBI version 0.91
|
|
0 |
Exception/Class/DBI version 0.92
|
1 | 1 |
================================
|
2 | 2 |
|
3 | 3 |
This module offers a set of DBI-specific exception classes. They inherit from
|
0 | 0 |
package Exception::Class::DBI;
|
1 | 1 |
|
2 | |
# $Id: DBI.pm,v 1.10 2003/08/26 02:24:44 david Exp $
|
|
2 |
# $Id: DBI.pm,v 1.11 2004/06/17 17:43:29 david Exp $
|
3 | 3 |
|
4 | 4 |
use 5.00500;
|
5 | 5 |
use strict;
|
6 | 6 |
use Exception::Class;
|
7 | 7 |
use vars qw($VERSION);
|
8 | |
$VERSION = '0.91';
|
|
8 |
$VERSION = '0.92';
|
9 | 9 |
|
10 | 10 |
use Exception::Class ( 'Exception::Class::DBI' =>
|
11 | 11 |
{ description => 'DBI exception',
|
0 | 0 |
#!/usr/bin/perl -w
|
1 | 1 |
|
2 | |
# $Id: sth.t,v 1.7 2002/12/12 20:15:48 david Exp $
|
|
2 |
# $Id: sth.t,v 1.8 2004/06/17 17:43:29 david Exp $
|
3 | 3 |
|
4 | 4 |
use strict;
|
5 | 5 |
use Test::More (tests => 35);
|
|
35 | 35 |
ok( $err->err == 2, "Check err" );
|
36 | 36 |
is( $err->errstr, 'opendir(foo): No such file or directory',
|
37 | 37 |
"Check errstr" );
|
38 | |
is( $err->error, 'DBD::ExampleP::st execute failed: opendir(foo): No such '.
|
39 | |
"file or directory\n", "Check error" );
|
|
38 |
like( $err->error,
|
|
39 |
qr/^DBD::ExampleP::st execute failed: opendir\(foo\): No such file or directory/,
|
|
40 |
"Check error" );
|
40 | 41 |
is( $err->state, 'S1000', "Check state" );
|
41 | 42 |
ok( ! defined $err->retval, "Check retval" );
|
42 | 43 |
|