jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Parvulescu <alex.parvule...@gmail.com>
Subject Re: comparing long values with JCR-JQOM fails.
Date Fri, 15 Apr 2011 08:34:27 GMT
Hi,

I don't think you would need to cast explicitly.

do you have an example where this breaks? a unit test maybe ;)

alex

On Thu, Apr 14, 2011 at 9:49 PM, mmjose26 <mmjose26@yahoo.com.mx> wrote:

> when I compare long type values with JCR-JQOM the query SQL2 generated
> doesnt
> take care of long type.
>
>
> it would be due to org.apache.jackrabbit.commons.query.sql2.QOMFormatter
> method private void append(Literal value)
> ....
> ...
>            case PropertyType.LONG:
>                append(v.getString());
>
> maybe would be
>
>            case PropertyType.LONG:
>                appendCastLiteral(v.getString(),"LONG");
>
> it makes sense?
>
> --
> View this message in context:
> http://jackrabbit.510166.n4.nabble.com/comparing-long-values-with-JCR-JQOM-fails-tp3450547p3450547.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message