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)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 9 Apr 2015 20:06:25 +0000 (20:06 +0000)
commitd1eacc9b23dc37b7799664c11d92354225d40baa
tree442465c8785057a40137be612b146a06b0eeb3ed
parentf9def66e09160af61a64501dfad5c9b5f1a256e4
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>
Open-ILS/examples/opensrf.xml.example
Open-ILS/src/reporter/clark-kent.pl