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