DBR/Misc/Connection/Mysql.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
getSequenceValue
2.0
can_trust_execute_rowcount
2.0
BEGIN
2.0
CRAP 2.0
1 package DBR::Misc::Connection::Mysql;
2  
3 use strict;
4 use base 'DBR::Misc::Connection';
5  
6  
7 sub getSequenceValue{
8 my $self = shift;
9 my $call = shift;
10  
11 my ($insert_id) = $self->{dbh}->selectrow_array('select last_insert_id()');
12 return $insert_id;
13  
14 }
15  
16 sub can_trust_execute_rowcount{ 1 } # NOTE: This should be variable when mysql_use_result is implemented
17  
18 1;