-->
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: DB2 for z/OS
PostPosted: Mon Jan 16, 2006 1:17 pm 
Newbie

Joined: Thu Sep 01, 2005 12:28 pm
Posts: 9
Hi guys,

Has anyone tried Hibernate with DB2 for z/OS. I tried both drivers for DB2 that come with Hibernate and they didnt seem to work. What bothers me is that the version that we have (and I read in the Internet that this is so in all version of DB2 for z/OS), I need to perform commit after every operation on the DB, inluding selects. The other issue is that when a change in the data occurs (with update or insert) the DB2 sends SQLCODE with the value 0 and another message with the actual changed rows. Something like that:

DSNE615I NUMBER OF ROWS AFFECTED IS 1
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0

Hibernate assumes that the affected rows are 0 and brings an error.

Your help will be appreciated.
Cheers
Emil


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 7:42 pm 
Newbie

Joined: Thu Sep 01, 2005 12:28 pm
Posts: 9
Anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 22, 2006 8:10 pm 
Regular
Regular

Joined: Tue Oct 26, 2004 3:54 pm
Posts: 60
I work on DB2/400, so we can maybe share some experience.

But in your post everything seems right :

Code:
DSNE615I NUMBER OF ROWS AFFECTED IS 1
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0


1 row affected, SQLCODE is 0 (so no error).

Can you provide some more info on the (eventual) error you receive ?

Giulio


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.