openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2376) Escape character in JPQL with parameter substitution generates incorrect SQL
Date Thu, 17 Oct 2013 07:31:43 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797684#comment-13797684
] 

Mark Struberg commented on OPENJPA-2376:
----------------------------------------

Heath, is this considered to be fixed? Your commit made it into the 2.3.x branch. Can we set
it to resolved in 2.3.0?

> Escape character in JPQL with parameter substitution generates incorrect SQL
> ----------------------------------------------------------------------------
>
>                 Key: OPENJPA-2376
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2376
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.1.1, 2.2.1, 2.2.2, 2.2.1.1
>            Reporter: Albert Lee
>            Assignee: Albert Lee
>         Attachments: OPENJPA-2376.21x.patch, OPENJPA-2376.22x.patch
>
>
> Escape character in JPQL/SQL with parameter substitution generates incorrect SQL. E.g.
> "SELECT 'TRUE' AS VAL FROM DUAL WHERE '\\' = ?"
> or 
> "SELECT * FROM ( SELECT FOLDER_ID, SYS_CONNECT_BY_PATH(NAME,'\\') AS PATH FROM PROJECT_FOLDER
START WITH PARENT_ID IS NULL CONNECT BY PRIOR FOLDER_ID = PARENT_ID ) WHERE PATH LIKE ?"
> the '\\' will be transformed to '' and causes SQLException when send to the db server.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message