Skip to Content.
Sympa Menu

freetds - dbbind and DBDATETIME fix

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Hal Snyder <hal AT vailsys.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: dbbind and DBDATETIME fix
  • Date: 30 Nov 2000 17:07:41 -0600


In current repository for freetds:

Values returned from a select using dbbind and DBDATETIME data type
were returning garbage, presumably due to missing cases in
src/dblib/dblib.c: _db_get_server_type.

I added cases for DBDATETIME and DBDATETIME4.
Here's the patch:


Index: src/dblib/dblib.c
===================================================================
RCS file: /Repository/freetds/src/dblib/dblib.c,v
retrieving revision 1.73
diff -r1.73 dblib.c
799a800,806
> case DATETIMEBIND:
> return SYBDATETIME;
> break;
> case SMALLDATETIMEBIND:
> return SYBDATETIME4;
> break;
>



  • dbbind and DBDATETIME fix, Hal Snyder, 11/30/2000

Archive powered by MHonArc 2.6.24.

Top of Page