-->
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: Hibernate problem in Sybase, but not with others
PostPosted: Wed Dec 17, 2003 6:17 am 
Senior
Senior

Joined: Tue Oct 21, 2003 8:15 am
Posts: 186
I'M BACK!!!

And the strangest thing happened.

We have a huge application based on Hibernate that works just great in MySQL and Oracle. But when we try it with Sybase, weird things happends.

The problem now is this:

No data is added to the database, yet Hibernate says everyhing's fine. No exceptions... nothing is logged.

However, if we wrap ONE OF THE METHODS having a session inside a transaction, then EVERYTHING is added whether it was added in that session or another. That is, stuff added in one session is added only if it is in a transaction -OR- some other method having a session is transactional.

Crazy stuff.

I see that the MySQL dialact has DEFAULT_BATCH_SIZE while Sybase has NO_BATCH. Does this have anything to do with it?

Any clue?

-nick


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 17, 2003 8:04 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Probably something related to autocommit=true or something.

try to set batch_size=0 on your MySQL version to be sure.

_________________
Emmanuel


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.