20 #ifndef _tdsconvert_h_
21 #define _tdsconvert_h_
23 #include <freetds/pushvis.h>
53 TDS_BIGDATETIME bigdatetime;
76 #define TDS_CONVERT_FAIL -1
77 #define TDS_CONVERT_NOAVAIL -2
78 #define TDS_CONVERT_SYNTAX -3
79 #define TDS_CONVERT_NOMEM -4
80 #define TDS_CONVERT_OVERFLOW -5
83 #define TDS_CONVERT_CHAR 256
84 #define TDS_CONVERT_BINARY 257
89 TDS_INT tds_char2hex(TDS_CHAR *dest, TDS_UINT destlen,
const TDS_CHAR * src, TDS_UINT srclen);
101 #include <freetds/popvis.h>
unsigned char tds_willconvert(int srctype, int desttype)
Test if a conversion is possible.
Definition: convert.c:3198
this structure is not directed connected to a TDS protocol but keeps any DATE/TIME information...
Definition: tds.h:144
Used by tds_datecrack.
Definition: tds.h:157
size_t tds_strftime(char *buf, size_t maxsize, const char *format, const TDSDATEREC *timeptr, int prec)
format a date string according to an "extended" strftime(3) formatting definition.
Definition: convert.c:3082
TDS_INT tds_convert(const TDSCONTEXT *context, int srctype, const void *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr)
tds_convert convert a type to another.
Definition: convert.c:1976
TDS_SERVER_TYPE tds_get_null_type(TDS_SERVER_TYPE srctype)
Get same type but nullable.
Definition: convert.c:3015