db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Bengtson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-176) JPOX fails when a query calls String.matches
Date Mon, 17 Oct 2005 09:01:47 GMT
    [ http://issues.apache.org/jira/browse/JDO-176?page=comments#action_12332214 ] 

Erik Bengtson commented on JDO-176:

should the jdo implementation raise an exception or is it valid to query for '*First' (literally)?

> JPOX fails when a query calls String.matches
> --------------------------------------------
>          Key: JDO-176
>          URL: http://issues.apache.org/jira/browse/JDO-176
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michael Watzek
>     Assignee: Erik Bengtson

> JPOX fails when a query calls String.matches. This bug may be reproduced applying patch
JDO-159. The SQL generation of the following query is incorrect:
> SELECT FROM org.apache.jdo.tck.pc.company.Person WHERE firstname.matches('*First') 
> The LIKE clause of the generated SQL statement contains '*First'. This is a bug. It should
contain '%First'.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message