dbbind and DBDATETIME fix
Hal Snyder
hal at vailsys.com
Thu Nov 30 18:07:41 EST 2000
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;
>
More information about the FreeTDS
mailing list