NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item8829: Integer index doesn't work for queries
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Urgent |
Closed |
Engine |
|
|
Using a constant integer index in a query doesn't work. For example, in a topic with more than 2 attachments, then
%QUERY{"attachments[1].name"}%
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

)
--
CrawfordCurrie - 04 Apr 2010
This fix "broke" a miscoded test (Fn_QUERY)
--
CrawfordCurrie - 08 Apr 2010