Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3424) concat()
with param binding fails function on derby

Anupam M (JIRA)

2008-08-08

Replies: Find Java Web Hosting

Author LoginPost Reply
concat() with param binding fails function on derby
----------------------------------------------------

          Key: HHH-3424
          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3424
        Project: Hibernate3
      Issue Type: Improvement
      Components: query-criteria, query-hql, query-sql
     Environment: Derby (although assumed DB2 has same issue)
       Reporter: Steve Ebersole
       Assignee: Steve Ebersole
        Fix For: 3.3.x


Derby does not accept queries in which concat is used to attempt to concatenate params. For example:

concat( ?, ? ) is illegal because it limits that only strings can be concatenated. As such, one must use cast() calls around the params:

concat( cast( ? as varchar(xyz) ), cast ( ? as varchar(xyz) ) )

Note however, that this limits what can be bound to these params a bit when those queries run against derby/db2...



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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.