[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1237) Escaping : with :: in queries

Fabrice Daugan (JIRA) noreply at atlassian.com
Wed Apr 27 04:14:59 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42151#action_42151 ] 

Fabrice Daugan commented on HHH-1237:
-------------------------------------

This patch is a very useful to manage MySql variables "@rowid:=0"

Considering the few impacted code, this should easy to be integrated.

> Escaping : with :: in queries
> -----------------------------
>
>                 Key: HHH-1237
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1237
>             Project: Hibernate Core
>          Issue Type: Patch
>          Components: core
>    Affects Versions: 3.1 rc3
>         Environment: Hibernate 3, Informix 9.4
>            Reporter: Steinar Dahl
>            Priority: Minor
>         Attachments: ParameterParser.java
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Since colons in queries in hibernate currenlty are non-escapable I created a patch (see http://forum.hibernate.org/viewtopic.php?p=2275131#2275131) to make it possible to escape the colon with itself. I needed to do this since I'm using Informix with native sql queries where I'm joining tables from two databases together. In informix you do this by specifiying <database-name>:<table-name> and that didn't work in hibernate since hibernate has reserved the colon for named parameters. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list