line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package SQL::Abstract::FromQuery::Oracle;
|
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
899
|
use strict;
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
64
|
|
4
|
2
|
|
|
2
|
|
7
|
use warnings;
|
|
2
|
|
|
|
|
1
|
|
|
2
|
|
|
|
|
45
|
|
5
|
2
|
|
|
2
|
|
359
|
use parent 'SQL::Abstract::FromQuery';
|
|
2
|
|
|
|
|
214
|
|
|
2
|
|
|
|
|
8
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub date {
|
9
|
2
|
|
|
2
|
0
|
87
|
my ($self, $h) = @_;
|
10
|
|
|
|
|
|
|
|
11
|
2
|
|
50
|
|
|
13
|
my $date_format = $self->{date_format} || 'YYYY-MM-DD';
|
12
|
2
|
|
|
|
|
10
|
my $date = $self->next::method($h);
|
13
|
|
|
|
|
|
|
|
14
|
2
|
|
|
|
|
11
|
return \ ["to_date(?, '$date_format')", $date];
|
15
|
|
|
|
|
|
|
}
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub time {
|
19
|
1
|
|
|
1
|
0
|
37
|
my ($self, $h) = @_;
|
20
|
|
|
|
|
|
|
|
21
|
1
|
|
50
|
|
|
5
|
my $time_format = $self->{time_format} || 'HH24:MI:SS';
|
22
|
1
|
|
|
|
|
6
|
my $time = $self->next::method($h);
|
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
4
|
return \ ["to_date(?, '$time_format')", $time];
|
25
|
|
|
|
|
|
|
}
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; # End of SQL::Abstract::FromQuery::Oracle
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
__END__
|