Re: Pb to cast Expression to ejbql string

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sun Mar 16 2008 - 17:15:47 EDT

  • Next message: Jean-François Smigielski: "Re: Cayenne 3.0M3 : select query with LIMIT and OFFSET clauses"

    Looks like a bug to me.

    Andrus

    On Mar 16, 2008, at 10:59 PM, Francois Eyl wrote:

    > Hi all,
    >
    > I'm getting a strange behavior using expression and its toEJBQL
    > method.
    >
    > I'm using this to create my where close from a given Expression.
    > This works for me in many cases except for this sample :
    >
    > When I run the toString() method I get the following string (this is
    > ok) :
    > scheduleId in (1, 2, 5, 6, 7, 8, 8, 10)
    > But when I run the toEJBQL("s") I got the following string (this is
    > wrong) :
    > s.scheduleId in ()
    >
    > So, It seems that when I cast my expression to EJBQL string,
    > parameters are lost (numbers from my IN close).
    >
    > Is it a normal behavior or a kind of bug ?
    >
    > Thanks
    >



    This archive was generated by hypermail 2.0.0 : Sun Mar 16 2008 - 17:16:19 EDT