40 | 40 |
ok( ! defined $err->retval, "Check retval" );
|
41 | 41 |
is( $err->warn, 1, "Check warn" );
|
42 | 42 |
is( $err->active, 1, "Check active" );
|
43 | |
# For some reason, under perl < 5.8.0, $dbh->{Kids} returns a different value
|
|
43 |
# For some reason, under perl < 5.6.2, $dbh->{Kids} returns a different value
|
44 | 44 |
# inside the HandleError scope than it does outside that scope. So we're
|
45 | 45 |
# checking for the perl version here to cover our butts on this test. This may
|
46 | 46 |
# be fixed in the DBI soon. I'm using the old form of the Perl version number
|
47 | |
# as it seems safer with older Perls.
|
48 | |
is( $err->kids, ($^V lt v5.8 ? 1 : 0), "Check kids" );
|
49 | |
is( $err->kids, ($] < 5.008 ? 1 : 0), "Check kids" );
|
|
47 |
# as it seems safer with older Perls. See
|
|
48 |
# http://groups.google.com/group/perl.dbi.dev/browse_thread/thread/6a1903e2eb251d45
|
|
49 |
# for details.
|
|
50 |
is( $err->kids, ($^V lt v5.6.2 ? 1 : 0), "Check kids" );
|
|
51 |
is( $err->kids, ($] < 5.006_002 ? 1 : 0), "Check kids" );
|
50 | 52 |
is( $err->active_kids, 0, "Check active_kids" );
|
51 | 53 |
ok( ! $err->inactive_destroy, "Check inactive_destroy" );
|
52 | 54 |
is( $err->trace_level, 0, "Check trace_level" );
|