Fix EndTime case handling.
This commit is contained in:
parent
db0f9911ae
commit
f6c29b51ef
|
@ -199,10 +199,10 @@ sub Sql {
|
||||||
$self->{Sql} .= 'E.EndDateTime';
|
$self->{Sql} .= 'E.EndDateTime';
|
||||||
} elsif ( $term->{attr} eq 'EndDate' ) {
|
} elsif ( $term->{attr} eq 'EndDate' ) {
|
||||||
$self->{Sql} .= 'to_days( E.EndDateTime )';
|
$self->{Sql} .= 'to_days( E.EndDateTime )';
|
||||||
} elsif ( $term->{attr} eq 'EndDateTime' ) {
|
} elsif ( $term->{attr} eq 'EndTime' ) {
|
||||||
$self->{Sql} .= 'extract( hour_second from E.EndDateTime )';
|
$self->{Sql} .= 'extract( hour_second from E.EndDateTime )';
|
||||||
} elsif ( $term->{attr} eq 'EndWeekday' ) {
|
} elsif ( $term->{attr} eq 'EndWeekday' ) {
|
||||||
$self->{Sql} .= "weekday( E.EndDateTime )";
|
$self->{Sql} .= 'weekday( E.EndDateTime )';
|
||||||
} elsif ( $term->{attr} eq 'ExistsInFileSystem' ) {
|
} elsif ( $term->{attr} eq 'ExistsInFileSystem' ) {
|
||||||
push @{$self->{PostSQLConditions}}, $term;
|
push @{$self->{PostSQLConditions}}, $term;
|
||||||
$self->{Sql} .= 'TRUE /* ExistsInFileSystem */';
|
$self->{Sql} .= 'TRUE /* ExistsInFileSystem */';
|
||||||
|
|
Loading…
Reference in New Issue