From 8d12d12db049bba5cbf8b679779f5158e4a3583f Mon Sep 17 00:00:00 2001 From: JT Smith Date: Wed, 3 Jun 2009 15:14:48 +0000 Subject: [PATCH] WebGUI::Search epoch maximum range error (#10288) --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Search.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 8ec9caa79..eebb0789b 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -14,6 +14,7 @@ - fixed Two sets of delete buttons for photos in the Story. - fixed #9920: Survey: cannot add questions in IE - fixed #10449: Undefined template + - fixed: WebGUI::Search epoch maximum range error (#10288) - fixed #10365: Head tags do not work "Use Packed Head Tags". - fixed #9927: Survey - verbatim - fixed #10352: Deleting a user does not clean up any address books diff --git a/lib/WebGUI/Search.pm b/lib/WebGUI/Search.pm index 745ca56fb..efa838007 100644 --- a/lib/WebGUI/Search.pm +++ b/lib/WebGUI/Search.pm @@ -424,13 +424,13 @@ sub search { } if ($rules->{creationDate}) { my $start = $rules->{creationDate}{start} || 0; - my $end = $rules->{creationDate}{end} || 9999999999999999999999; + my $end = $rules->{creationDate}{end} || "9223372036854775807"; push(@clauses, "creationDate between ? and ?"); push(@params, $start, $end); } if ($rules->{revisionDate}) { my $start = $rules->{revisionDate}{start} || 0; - my $end = $rules->{revisionDate}{end} || 9999999999999999999999; + my $end = $rules->{revisionDate}{end} || "9223372036854775807"; push(@clauses, "revisionDate between ? and ?"); push(@params, $start, $end); }