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; |