line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
2592
|
use strict; use warnings; |
|
2
|
|
|
2
|
|
5
|
|
|
2
|
|
|
|
|
55
|
|
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
81
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package DBIx::Connector::Driver::mysql; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
12
|
use DBIx::Connector::Driver; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
530
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.59'; |
8
|
|
|
|
|
|
|
our @ISA = qw( DBIx::Connector::Driver ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub _connect { |
11
|
0
|
|
|
0
|
|
|
my ($self, $dbh) = @_; |
12
|
0
|
|
|
|
|
|
$dbh->{mysql_auto_reconnect} = 0; |
13
|
0
|
|
|
|
|
|
$dbh; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub savepoint { |
17
|
0
|
|
|
0
|
1
|
|
my ($self, $dbh, $name) = @_; |
18
|
0
|
|
|
|
|
|
$dbh->do("SAVEPOINT $name"); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub release { |
22
|
0
|
|
|
0
|
1
|
|
my ($self, $dbh, $name) = @_; |
23
|
0
|
|
|
|
|
|
$dbh->do("RELEASE SAVEPOINT $name"); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub rollback_to { |
27
|
0
|
|
|
0
|
1
|
|
my ($self, $dbh, $name) = @_; |
28
|
0
|
|
|
|
|
|
$dbh->do("ROLLBACK TO SAVEPOINT $name"); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |