Hi,

I'm having some (minor) problems converting an old mmbase site to 1.7.3:
the constraints attribute in <mm:list> doesn't seem to be really downwards
compatible.

I have a list which looks like this:
<mm:list  ... constraints="i_pos.pos % 3 = 1">

This works fine in mmbase <1.7 but 1.7 gives me this error:
2005-03-30 15:29:17,263 SERVICE search.legacy.ConstraintParser.fallback -
Failed to parse Constraint from search condition string: 
     sqlConstraint = i_pos.pos % 3 = 0
     exception: java.lang.IllegalArgumentException: Unexpected token:
"%"java.lang.IllegalArgumentException: Unexpected token: "%"

I even tried to use MOD(i_pos.pos, 3) = 1, but that doesn't work either...
even though the examples in the docs claim you can use sql functions, I
have the feeling that anything which isn't a simple combination of fields
doesn't work.

any ideas if this should be a bug or is it the way it is intended ?

TIA...

Ricardo.
--------------------------------------------
Ricardo Kustner
IC&S B.V.

Stadhouderslaan 57
3583 JD Utrecht
The Netherlands
http://www.ic-s.nl

T: +31 30 6355730
F: +31 30 6355731 

PGP-key: http://www.ic-s.nl/keys/ricardo.txt

_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to