| 1 | package URI::_odbc; | ||||||||||||||||||||||||||||
| 2 | 3 | ▶ | use base 'URI::_db'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 3 | our $VERSION = '0.23'; | |||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 33 | ▶ | sub dbi_driver { 'ODBC' } | ||||||||||||||||||||||||||
|
Subroutine
dbi_driver: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | sub _dbi_param_map { | ||||||||||||||||||||||||||||
| 8 | 76 | ▶ | my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
_dbi_param_map: called CC=4 SCAR=13.9
| |||||||||||||||||||||||||||||
| 9 | 76 | my $host = $self->host; | |||||||||||||||||||||||||||
| 10 | 76 | my $port = $self->_port; | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | # Just return the DSN if no host or port. | ||||||||||||||||||||||||||||
| 13 | 76 | ▶ | return [ DSN => scalar $self->dbname ] unless $host || $port; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$host or $port
MC/DC50%1/2
$host or $port
$host
$port
Truth table66%2/3
A or B
A= $hostB= $port
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | return ( | ||||||||||||||||||||||||||||
| 16 | 49 | ▶ | [ Server => $host ], | ||||||||||||||||||||||||||
|
Condition100%3/3
$port || $self->default_port
MC/DC100%2/2
$port || $self->default_port
$port
$self->default_port
Truth table100%3/3
A || B
A= $portB= $self->default_port
| |||||||||||||||||||||||||||||
| 17 | [ Port => $port || $self->default_port ], | ||||||||||||||||||||||||||||
| 18 | [ Database => scalar $self->dbname ], | ||||||||||||||||||||||||||||
| 19 | ); | ||||||||||||||||||||||||||||
| 20 | } | ||||||||||||||||||||||||||||
| 21 | |||||||||||||||||||||||||||||
| 22 | 3 | 1; | |||||||||||||||||||||||||||