Ernst Bunders wrote:
> 
> so far so good, but when i create a constraint using this field, ik get 
> errors:
> 
>  NodeList nl = cloud.getList(null, "object,posrel,pagina",
>                 "pagina.number",
>                 "object.number=" + pageNode.getNumber() + " AND 
>                 pagina.tonen = 1",
>                 "posrel.pos",
>                 "up", "destination", false);
> 
>  sqlConstraint = object.number=112 AND pagina.tonen = 1
>      exception: Invalid value for BOOLEAN field: 1.0, of type 
>      java.lang.Double
> 
> i also tried:
> 
> AND pagina.tonen
> AND pagina.tonen = true
> 
> but nothing works (or, it works, but in legacy mode, and an exception is 
> thrown each time.
> 
> 
> I havn't tried creating a Query object, because I am too lazy to do that. I 
> think it should work like this...
> 
> can anybody help me?

Perhaps it is never tested for this legacy mode, as Nico suggested. Because
well, perhaps it was considered legacy any way. When using taglib, as I
normally do, this code is not triggered. Still we can consider it a bug
then. This could be a nice opportunity to try Jira. I'd say it is 'pogina.tonen 
=
true' what ought to work, or r perhaps even 'pagina.tonen'....

Michiel

-- 
Michiel Meeuwissen                  mihxil'
Peperbus 107 MediaPark H'sum          []()
+31 (0)35 6772979         nl_NL eo_XX en_US
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to