line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
######################################################################## |
2
|
|
|
|
|
|
|
# housekeeping |
3
|
|
|
|
|
|
|
######################################################################## |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Object::Wrapper::Fork::DBI_stubs; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
1037
|
use 5.8.0; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
60
|
|
8
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
35
|
|
9
|
1
|
|
|
1
|
|
6
|
use parent qw( Object::Wrapper::Fork ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
57
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
74
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
1198
|
use Symbol qw( qualify qualify_to_ref ); |
|
1
|
|
|
|
|
1026
|
|
|
1
|
|
|
|
|
202
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
######################################################################## |
16
|
|
|
|
|
|
|
# package variables & sanity checks |
17
|
|
|
|
|
|
|
######################################################################## |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
our $VERSION = 0.01; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
######################################################################## |
22
|
|
|
|
|
|
|
# utility subs |
23
|
|
|
|
|
|
|
######################################################################## |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub import |
26
|
|
|
|
|
|
|
{ |
27
|
1
|
|
|
1
|
|
33
|
my $caller = caller; |
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
|
|
3
|
for( qw( connect connect_cached ) ) |
30
|
|
|
|
|
|
|
{ |
31
|
|
|
|
|
|
|
# stub out the normal constructors. |
32
|
|
|
|
|
|
|
|
33
|
2
|
|
|
|
|
9
|
my $name = qualify $_, $caller; |
34
|
2
|
|
|
|
|
122
|
my $ref = qualify_to_ref $name; |
35
|
|
|
|
|
|
|
|
36
|
2
|
|
|
|
|
27
|
undef &{ *$ref }; |
|
2
|
|
|
|
|
33
|
|
37
|
|
|
|
|
|
|
|
38
|
2
|
|
|
0
|
|
182
|
*$ref = sub { croak "Bogus $name: DBI not avaialble" }; |
|
0
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
} |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
__END__ |