New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists

Item8829: Integer index doesn't work for queries

Priority: Urgent
Current State: Closed
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Reported By: CrawfordCurrie
Waiting For:
Last Change By: KennethLavrsen
Using a constant integer index in a query doesn't work. For example, in a topic with more than 2 attachments, then


should return the name of the second attachment. Instead it returns a list of all the attachments.

-- CrawfordCurrie - 03 Apr 2010

0-based or 1-based indexing system?

-- WillNorris - 03 Apr 2010

Zero based; and I let it support negative indices in the perl way too (one of the few things I really like in perl wink )

-- CrawfordCurrie - 04 Apr 2010

This fix "broke" a miscoded test (Fn_QUERY)

-- CrawfordCurrie - 08 Apr 2010


ItemTemplate edit

Summary Integer index doesn't work for queries
ReportedBy CrawfordCurrie
SVN Range
AppliesTo Engine
Priority Urgent
CurrentState Closed
Checkins distro:8c50a2eedae2 distro:808bf1c9eb51 distro:6d13d448353d
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r9 - 04 Oct 2010, KennethLavrsen - This page was cached on 20 Jun 2018 - 15:39.

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