File Coverage

blib/lib/URI/_odbc.pm
Criterion Covered Total %
statement 9 9 100.0
branch 2 2 100.0
condition 5 6 83.3
subroutine 3 3 100.0
pod 0 1 0.0
total 19 21 90.4


line stmt bran cond sub pod time code
1             package URI::_odbc;
2 3     3   20 use base 'URI::_db';
  3         6  
  3         548  
3             our $VERSION = '0.20';
4              
5 28     28 0 64 sub dbi_driver { 'ODBC' }
6              
7             sub _dbi_param_map {
8 60     60   240 my $self = shift;
9 60         133 my $host = $self->host;
10 60         1507 my $port = $self->_port;
11              
12             # Just return the DSN if no host or port.
13 60 100 66     893 return [ DSN => scalar $self->dbname ] unless $host || $port;
14              
15             return (
16 40   100     145 [ Server => $host ],
17             [ Port => $port || $self->default_port ],
18             [ Database => scalar $self->dbname ],
19             );
20             }
21              
22             1;