-->
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: Stored procedure with currentSchema
PostPosted: Mon Jul 20, 2009 8:40 am 
Newbie

Joined: Mon Jul 13, 2009 10:46 am
Posts: 2
Hi,

I am using Spring + Hibernate and I am having a problem calling Stored procedure without explicitly setting currentSchema.

My connection url is:
Code:
jdbc:db2://myserver:[port number]/DB2D:currentSchema=myschema;


Using mapped classes is working fine.

Calling sp as follow
Code:
{call MySP(?, ?)}
result -440 error.

Calling it with the schema name as follow works fine:
Code:
{call myschema.MySP(?, ?)}


Trace for both cases shows DriverManagerDataSource:289 - Creating new JDBC Connection to [jdbc:db2://myserver:[port number]/DB2D:currentSchema=myschema;]

Do I have to explicitly set the schema name before call sp?

Thanks


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.