Skip to Content.
Sympa Menu

freetds - JDBC driver error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Fawzib Rojas" <spectron AT caribe.net>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: JDBC driver error
  • Date: Fri, 27 Apr 2001 15:17:55 -0400


I get the following exception when I'm running a stored procedure that
returns a resultset (works on ISQLW in MS SQL 6.5):

com.internetcds.jdbc.tds.TdsConfused: Protocol confusion- Was expecting an
end of results token. Found a 0x2
at com.internetcds.jdbc.tds.Tds.discardResultSet(Tds.java:3137)
at
com.internetcds.jdbc.tds.ResultSet_base.close(ResultSet_base.java:169)
at com.internetcds.jdbc.tds.Statement.closeResults(Statement.java:166)
at com.internetcds.jdbc.tds.Statement.close(Statement.java:230)
at com.internetcds.jdbc.tds.Statement.finalize(Statement.java:107)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:86)
at java.lang.ref.Finalizer.access$100(Finalizer.java:17)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:163)

The stored procedure creates temporary tables, cursors and saves all the
information in declared variables and in the end just does a select that
looks like this:

select @var1 as 'var1', @var2 as 'var2'

Like I said, in ISQL it looks ok, so I guess it is a bug in the JDBC driver.
Is there anything I can do to make this query work?



  • JDBC driver error, Fawzib Rojas, 04/27/2001

Archive powered by MHonArc 2.6.24.

Top of Page