dbbind don't works with DATETIME4BIND...

Ramiro Vázquez lrvazquez at megared.net.mx
Fri Apr 20 15:09:36 EDT 2001


Hi,

    I working with freetds 0.51 configured with TDSVER=42 on solaris 7
accesing to MS-SQL 7.0.

    I have a field with SMALLDATETIME type and when I try to dbbind it using
the type SMALLDATETIMEBIND returns the variable with 0's in both members, if
I try with DATETIMEBIND yields the same.

    I see if I try to bind to STRINGBIND works fine, but with the format
"Jan  1 2001 12:00PM" so when I try to dbconvert to either DBDATETIME4 or
DBDATETIME variable fails. I  saw that _string_to_tm function don't expect
that format.

    Is there a bug with dbbind to handle DATETIME types ??
    I have to set a option ??
Ramiro.




More information about the FreeTDS mailing list