-->
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.  [ 4 posts ] 
Author Message
 Post subject: Batch updates and Sybase
PostPosted: Thu Feb 24, 2005 6:12 am 
Newbie

Joined: Wed Oct 01, 2003 1:51 am
Posts: 8
Hi

Is there a way to turn off batch processing of inserts/updates in Hibernate?. The reason is that Sybase (ASA) is complaning : "Host variables may not be used within a batch"

Hermod


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 10:49 am 
Newbie

Joined: Wed Oct 01, 2003 1:51 am
Posts: 8
Addendum. The insert works just fine as long as i am running with 2.1.3. This problem surfaced in 2.1.4. Also, I get differrent errormessages from ASA 6 and ASA 9. ASA 6 says "Not enough values for host variables", while ASA 9 says "Host variables may not be used within a batch". I hav tried to set :
hibernate.jdbc.batch_size=0
hibernate.jdbc.use_scrollable_resultsets=false

but it does not seem to help.

Hermod


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 24, 2005 12:08 pm 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
The documentation states:
Quote:
hibernate.jdbc.batch_size : A non-zero value enables use of JDBC2 batch updates by Hibernate.

You are going to need to supply us with more info if you want further help.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 25, 2005 2:16 am 
Newbie

Joined: Wed Oct 01, 2003 1:51 am
Posts: 8
I will create a complete testcase and submit it. As I stated earlier, this all works fine in 2.1.3, all versions from 2.1.4 on forward fail. I just replace the hibernate2.jar file.
Hermod


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.