dbTalk Databases Forums  

Problem In Using Sybase Stored Procedure From Java Code.

comp.databases.sybase comp.databases.sybase


Discuss Problem In Using Sybase Stored Procedure From Java Code. in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
upinder_bali
 
Posts: n/a

Default Problem In Using Sybase Stored Procedure From Java Code. - 07-04-2003 , 09:17 AM







Hi,
I am facing a typical problem in using sybase stored procedure from java
code. I am using DATA DIRECT type 4 jdbc driver for database connection.
Following is the detail:

We are getting some exception while trying register out parameter to
Sybase procedure from java code.
Please find the corresponding exception


Error while changing status:java.sql.SQLException:
[DataDirect][Sybase JDBC Driver][Sybase]Operand type clash: INT is
incompatible with VOID TYPE

I am using DATA DIRECT THPE 4 JDBC DRIVER. I there any restriction with
this driver.

Following is the java code:
cstmtUpdate=conn.prepareCall("{call
OPSals..pool_change_status(?,?,?,?,?)}");
cstmtUpdate.setInt(1,this.tipUnitNumber);
cstmtUpdate.setInt(2,Integer.parseInt(this.uni-
tStatus));
cstmtUpdate.setString(3,userId);
cstmtUpdate.registerOutParameter(4,
Types.INTEGER);
cstmtUpdate.registerOutParameter(5,
Types.VARCHAR);
cstmtUpdate.execute();


Please let me know if any of you got similar problem or are aware of
this.
Thnaks
Upinder..

--
usbali


Posted via http://dbforums.com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.