LP#1435494: do not encourage <resultset_limit></resultset_limit>
authorGalen Charlton <gmc@esilibrary.com>
Thu, 9 Apr 2015 20:06:25 +0000 (20:06 +0000)
committerBen Shum <bshum@biblio.org>
Fri, 10 Apr 2015 14:24:23 +0000 (10:24 -0400)
commitaddef13e7d132bd9314b0768ab89b48195eef349
tree28c1eb2dc3320a889b7141fe83794a4db2c86292
parentd8653cea5d56e64e4412a4144dd8de970291574c
LP#1435494: do not encourage <resultset_limit></resultset_limit>

An empty node in opensrf.xml gets parsed as an empty hashref,
not an empty scalar, so we'll use <resultset_limit>0</resultlet_limit>
in the suggested opensrf.xml config.  This fixes an issue
noticed by Ben Shum during testing where reports could fail with
the following message:

  DBD::Pg::st execute failed: ERROR: syntax error at or near "0"
  LINE 43: ) limited_to_HASH(0x2a974f8)_hits LIMIT HASH(0x2a974f8)
                             ^ at /openils/bin/clark-kent.pl line 243.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/reporter/clark-kent.pl