Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#802 SEQ[position() > EXP]

v9.0
closed
Michael Kay
5
2012-10-08
2008-04-05
Michael Kay
No

An incorrect optimization is carried out for an expression of the form SEQ[position() > EXP] in the case where (a) EXP is not known statically to return a whole number, but (b) at run-time, EXP does return a whole number.

The effect is that (assuming EXP returns the value N), the filter expression returns all items starting at position N-1, when it should return all items starting at position N+1.

A patch is being placed in subversion. Test case posn116 added.

Discussion

  • Michael Kay
    Michael Kay
    2008-05-12

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.0.0.5