-->
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.  [ 3 posts ] 
Author Message
 Post subject: Bug?SQLState: 22xxx considered as ConstraintViolation errors
PostPosted: Wed Dec 08, 2004 12:13 pm 
Newbie

Joined: Tue Jun 15, 2004 11:44 am
Posts: 7
According to the net.sf.hibernate.JDBCException.SQLStateConverter class.

Due to the following line:
Code:
INTEGRITY_VIOLATION_CATEGORIES.add("22")

all sqlstate that begins with '22' are belonging to the ConstraintViolationException.

In my case, my sqlstate is "Error in assignment. SQLSTATE=22005",
it isn't a Constraint Violation but reported as.

According to specifications of DB2, "22xxx" is for "Data Exception".

Please have a look to the following link:
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/rzala/rzalastc.html

I'm far to be a DB2 specialist, so maybe I've missed something?

Johann

Hibernate version:2.1.7c
Name and version of the database you are using: DB2 v7.2


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 12:16 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Please open a JIRA issue for this, thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 09, 2004 6:07 am 
Newbie

Joined: Tue Jun 15, 2004 11:44 am
Posts: 7
christian wrote:
Please open a JIRA issue for this, thanks.


It's done.

See Jira HB-1348:

http://opensource.atlassian.com/projects/hibernate/browse/HB-1348

Thanks.

Johann


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.