Item2188: Bad query makes DBRECURSE die ungracefully
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
I use some parameters to an
%INCLUDE%
to set variables in the filter when working with
%DBRECURSE%
.
For example:
%DBRECURSE{"%sometopic%"
filter="%somefield%=~'SomeTopic'"
format="..."
}%
This dies ungracefully with
Foswiki has encountered an internal error... ERROR: can't parse query "%somefield%=~'SomeTopic'...
Attached a diff which I think solves the problem.
Also added & documented a warn param (defaults to 'on') to mimic DBCALL's warn param. Also documented existence of warn param for ATTACHMENTS handler.
I will commit this once I've tested the new warnings being triggered during recursion, as I've made some assumptions there I need to verify.
--
PaulHarvey - 30 Sep 2009