Skip to Content.
Sympa Menu

freetds - Re: Bug in freeTDS?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Craig Spannring <cts AT internetcds.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: Bug in freeTDS?
  • Date: Thu, 18 Mar 1999 22:23:10 -0800 (PST)


Greg Matthews writes:
>
> In a nutshell, when using freeTDS as opposed to the
> jdbc-odbc bridge, I get a NullPointerException when
> a *null* date field is retrieved.

I've fixed the bug and commited the changes. They should be in the
ftp snapshot in a few minutes.

Internally the driver stores DATETIME and SMALLDATETIME in a
java.sql.Timestamp object. I wasn't checking for null before I
converted the Timestamp to a java.sql.Date.

--
=======================================================================
Life is short. | Craig Spannring
Ski hard, Bike fast. | cts AT internetcds.com
--------------------------------+------------------------------------
Any sufficiently horrible technology is indistinguishable from Perl.
=======================================================================




Archive powered by MHonArc 2.6.24.

Top of Page