Unix Technical Forum

Problem In Using Sybase Stored Procedure From Java Code.

This is a discussion on Problem In Using Sybase Stored Procedure From Java Code. within the Sybase forums, part of the Database Server Software category; --> Hi, I am facing a typical problem in using sybase stored procedure from java code. I am using DATA ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 03:40 PM
upinder_bali
 
Posts: n/a
Default Problem In Using Sybase Stored Procedure From Java Code.


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com