openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OPENJPA-80) Bad Escaping for LIKE in MySQL
Date Tue, 06 Mar 2007 09:34:24 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Patrick Linskey resolved OPENJPA-80.
------------------------------------

    Resolution: Fixed

> Bad Escaping for LIKE in MySQL
> ------------------------------
>
>                 Key: OPENJPA-80
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-80
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: query
>         Environment: openJPA 0.9.7 
> MySQL 5.0.15
>            Reporter: Jakob Braeuchi
>             Fix For: 0.9.7
>
>
> the following query :
> em.createQuery("select k from KategorieGruppe k  where k.bezeichnung like ?1 order by
k.bezeichnung asc");
> generates an sql-statement with a bad escaping character '\' for MySQL :
> SELECT t0.id, t0.bezeichnung FROM ekv2kategoriegruppe t0 WHERE (t0.bezeichnung LIKE ?
ESCAPE '\') ORDER BY t0.bezeichnung ASC
> the correct escaping would be '\\'.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message