-->
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: Oracle driver failure with batching and constraint violation
PostPosted: Tue Oct 05, 2004 6:30 am 
Newbie

Joined: Tue Sep 02, 2003 9:47 am
Posts: 8
Hibernate version:
2.14

I have been trying to convert a working application with Hibernate connecting to Postgres, to use Oracle instead. I have however found a nasty bug with the latest Oracle 10g JDBC drivers (thin and OCI) that throw a NullPointerException when using prepared statement batching if there has been a prior unique constraint violation.

Basically we get the following.

1. An insert (which works).
2. An insert with some duplicate data violating a constraint (fails as expected).
3. An insert with no duplicate data which should work (NullPointerException in OraclePreparedStatement).

Apologies if this offends anyone, I know this is absolutely no problem with Hibernate and entirely an Oracle driver problem, but as Hibernate does have complete control over our persistence, I would just like to ask if any other Oracle Hibernate users have had this problem (a search has turned up nothing) and if so how it has been dealt with. The only option I can come up with so far is to set the batch_size to 0 to turn off batching in Hibernate. If anyone has any other suggestions, I would be extremely grateful to hear them.

Thanks for any help.


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.