http://code.google.com/p/datanucleus-appengine/issues/detail?id=128

Unfortunately the only real workaround is to use named params instead of
positional params.  Do you think you can make that work?

Max

On Tue, Sep 15, 2009 at 7:36 AM, Max Ross
<maxr+appeng...@google.com<maxr%2bappeng...@google.com>
> wrote:

> Looks like a regression in handling of positional params.  I could've sworn
> I had tests for these.....but no, they don't exist.  I'll follow up with a
> bug number you can use to track this issue. I'll also try to find you a
> workaround.
>
> Sorry for the trouble,
> Max
>
>
> On Tue, Sep 15, 2009 at 12:33 AM, damnpana...@googlemail.com <
> damnpana...@googlemail.com> wrote:
>
>>
>> I have a jpa/spring dao that returns a user by open id url.  Running
>> on sdk 1.2.1, his worked without a problem. moving to 1.2.2, and now
>> 1.2.5, it no longer returns any records.  Returning all records and
>> using String.equals works fine:
>>
>> String openIdUrl = "http://blah/me";;
>> List results = em.createQuery("select u from "+OpenIDUser.class.getName
>> ()+" u where u.openIDUrl=?1").setParameter(1, openIdUrl).getResultList
>> ();
>> //results is size 0
>>
>> List l = em.createQuery("select u from "+OpenIDUser.class.getName()+"
>> u").getResultList();
>> for(Object o: l){
>>  String url = ((OpenIDUser)o).getOpenIDUrl();
>>  if(openIdUrl.equals(url)){
>>  //string matches
>>  return (OpenIDUser)o;
>>  }
>> }
>>
>> I am assuming I have inadvertently screwed something up in my
>> environment, but I'm struggling to get any more information  - can
>> anyone suggest any pointers?
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to