You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Patrick Linskey (JIRA)" <ji...@apache.org> on 2007/03/06 10:34:24 UTC

[jira] Resolved: (OPENJPA-80) Bad Escaping for LIKE in MySQL

     [ 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.