-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: mapping the concat function
PostPosted: Thu Mar 17, 2005 1:40 pm 
Newbie

Joined: Thu Mar 03, 2005 11:07 am
Posts: 6
Hibernate version:

2.1.7c


Hello!

I'm using a query that includes:
Code:
concat(string, string, string)
This works fine with MySQL. When running this with HSQLDB it doesn't work, since it uses '+' for concatenation. How can I map this to HSQLDB? I saw the docs for SQLFunctionTemplate, but I don't know how to use it. Or must I edit the dialect class for HSQL?

Thanks!


Top
 Profile  
 
 Post subject: Solution
PostPosted: Tue Mar 22, 2005 12:42 pm 
Newbie

Joined: Thu Mar 03, 2005 11:07 am
Posts: 6
Hi!

Well there is an easy fix, I didn't think of: HSQLDB comes the stored procedure concat(a, b). So all I did is rewrite my queries as: concat(a,concat(b,c)).

C ya.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.