Skip to Content.
Sympa Menu

freetds - [freetds] db-lib: support for new MS SQL 2008 data types - part 3

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: LacaK <lacak AT zoznam.sk>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] db-lib: support for new MS SQL 2008 data types - part 3
  • Date: Wed, 16 Apr 2014 13:44:38 +0200

Hi again,
Now I am personally happy with patched db-lib in regards of support new DATE - TIME data types.
But there are still missing some parts, which may be interesting to somebody else.
I meant dbbind() family of API with corresponding *BIND constants and binary structure used to store this types.

How to handle binding of new date, time types ?

- introduce new DBDATETIMEALLBIND (or DBDATETIME2BIND) constant in sybdb.h ?
- introduce new DBDATETIMEALL struct (==TDS_DATETIMEALL struct) in sybdb.h ?
- add support to copy_data_to_host_var() function in dblib.c ?

If you give me direction I can prepare patch ...
(if it is good idea add support for BINDing ?)
Thanks
-Laco.




Archive powered by MHonArc 2.6.24.

Top of Page