You are here: Foswiki>Tasks Web>Item2188 (08 Mar 2016, MichaelDaum)Edit Attach

Item2188: Bad query makes DBRECURSE die ungracefully

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: DBCachePlugin
Branches: master
Reported By: PaulHarvey
Waiting For:
Last Change By: MichaelDaum
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

ItemTemplate edit

Summary Bad query makes DBRECURSE die ungracefully
ReportedBy PaulHarvey
Codebase trunk
SVN Range 5188
AppliesTo Extension
Component DBCachePlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins DBCachePlugin:44a614d43dad
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches master
trunkCheckins
masterCheckins DBCachePlugin:44a614d43dad
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
I Attachment Action Size Date Who Comment
DBCachePlugin.diffdiff DBCachePlugin.diff manage 3 K 30 Sep 2009 - 06:19 PaulHarvey  
Topic revision: r3 - 08 Mar 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy