LP1690434: Date Comparisons in the Reporter user/jboyer/LP1690434_reporter_dates
authorJason Boyer <jboyer@library.in.gov>
Fri, 12 May 2017 19:14:54 +0000 (15:14 -0400)
committerJason Boyer <jboyer@library.in.gov>
Fri, 12 May 2017 19:14:54 +0000 (15:14 -0400)
commit99ee6f76a894fda369963e4b42501aca98ee59c1
tree49b36c39bb504060bc70b4d4ffdf76f0bd2c6dc0
parent5cf503208ddc9389b1585c0ca5375ec6d6aa6931
LP1690434: Date Comparisons in the Reporter

Because of the way the where clause is constructed
in queries using the Year + Month Transform reports
using some types of operators could produce invalid
SQL.

To test:
put together a simple report template with a date
in the Basic Filters section, using the Year + Month
transform and the On or After operator. (a count of
circs with an xact_start filter is a simple way to
set this up.) Schedule it with a relative date
such as 1 month ago and run it.

Pre Patch: the report will fail and the error text
will reference a missing text >= double precision
comparison function.

Post Patch: you'll get a count of how many circs
were opened last month (or whatever report you
wrote).

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Open-ILS/src/perlmods/lib/OpenILS/Reporter/SQLBuilder.pm