Skip to Content.
Sympa Menu

freetds - Re: SQL and Java datatypes in FreeTDS

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Bob Kline <bkline AT rksystems.com>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: SQL and Java datatypes in FreeTDS
  • Date: Mon, 8 Jan 2001 19:45:05 -0500 (EST)


On Mon, 8 Jan 2001, Fabio Galarraga wrote:

> When I run this code, the last line generate a SQLException with
> error: "Internal error. Don't know how to convert from
> java.sql.Types DECIMAL to an long"
>
> This code works with ODBC-JDBC driver.
>
> What's the problem?
> Is getInt method implemented in freetds_jdbc.snapshot.jar?

Yes, but not this part of it. Here's what's in the source code:

case java.sql.Types.DECIMAL:
case java.sql.Types.BIT:
{
// XXX according to JDBC spec we need to handle these
// for now just fall through
}
default:
{
throw new SQLException("Internal error. " .....

--
Bob Kline
mailto:bkline AT rksystems.com
http://www.rksystems.com





Archive powered by MHonArc 2.6.24.

Top of Page