JDBC: Protocol confusion retrieving result of " SELECT @@IDENTITY"

Maraya Michael maraya-michael at dol.gov
Wed Jul 12 10:04:25 EDT 2000


In the meanwhile, a work-around for this is to explicitly cast it as DECIMAL
17.

> ----------
> From: 	Bob Kline[SMTP:bkline at rksystems.com]
> Sent: 	Wednesday, July 12, 2000 9:38 AM
> To: 	TDS Development Group
> Subject: 	[freetds] Re: JDBC: Protocol confusion retrieving result of
> "SELECT @@IDENTITY"
> 
> On Wed, 12 Jul 2000, Emmanuel Blot wrote:
> 
> > Hello.
> > 
> > I get the same message while invoking a stored procedure:
> > java.sql.SQLException: 
> >   Protocol confusion- Was expecting a length of 17, got 5
> >   at 
> > com.internetcds.jdbc.tds.ResultSet_base.next(ResultSet_base.java:1542)
> > but the code works fine with MS SQL Server 7.00.623 (Driver 3.70.06.90)
> !
> > 
> > Any idea ?
> > 
> 
> This problem is fixed by the latest patches which Craig is in the
> process of merging into the repository.
> 
> -- 
> Bob Kline
> mailto:bkline at rksystems.com
> http://www.rksystems.com
> 
> 
> ---
> You are currently subscribed to freetds as: maraya-michael at dol.gov
> To unsubscribe, forward this message to
> $subst('Email.Unsub')
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/freetds/attachments/20000712/7caa20c7/attachment.html 


More information about the FreeTDS mailing list