line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
2765
|
use strict; use warnings; |
|
2
|
|
|
2
|
|
4
|
|
|
2
|
|
|
|
|
56
|
|
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
70
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package DBIx::Connector::Driver::MSSQL; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
12
|
use DBIx::Connector::Driver; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
374
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.59'; |
8
|
|
|
|
|
|
|
our @ISA = qw( DBIx::Connector::Driver ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub savepoint { |
11
|
0
|
|
|
0
|
1
|
|
my ($self, $dbh, $name) = @_; |
12
|
0
|
|
|
|
|
|
$dbh->do("SAVE TRANSACTION $name"); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# MSSQL automatically releases a savepoint when you start another one with the |
16
|
|
|
|
|
|
|
# same name. |
17
|
0
|
|
|
0
|
1
|
|
sub release { 1 } |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub rollback_to { |
20
|
0
|
|
|
0
|
1
|
|
my ($self, $dbh, $name) = @_; |
21
|
0
|
|
|
|
|
|
$dbh->do("ROLLBACK TRANSACTION $name"); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |