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