-->
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.  [ 1 post ] 
Author Message
 Post subject: problem with SQLStateConverter
PostPosted: Wed Feb 16, 2011 7:13 pm 
Newbie

Joined: Fri Jun 26, 2009 2:46 pm
Posts: 2
I'm having issues with SQLStateConverter because in some database installations that raise error messages in other languages other than english, SQLStateConverter creates ConstraintViolationException with null contraint name. Specifically in my case I'm using a PostgreSQL database installation in English and all is working fine but when I test my application in an PostgreSQL Database installed on Spanish I get null contraint names.

I digg a little about this and the problem is with templates in TemplatedViolatedConstraintNameExtracter implementation peer Dialect, where the template is hand writed for extract constraint names from English errors messages that came from the Database.

I think that this is a bug, but before I create an issue on Jira I want to know if it can be resolved in any way. PostgreSQL has a configuration value to raise localized error messages but what about legacy databases that store data for already running systems on the same server?


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

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.