20 #ifndef _tdsconvert_h_
21 #define _tdsconvert_h_
64 #define TDS_CONVERT_FAIL -1
65 #define TDS_CONVERT_NOAVAIL -2
66 #define TDS_CONVERT_SYNTAX -3
67 #define TDS_CONVERT_NOMEM -4
68 #define TDS_CONVERT_OVERFLOW -5
71 #define TDS_CONVERT_CHAR 256
72 #define TDS_CONVERT_BINARY 257
Definition: tdsconvert.h:50
int tm_year
year (0=1900)
Definition: tdsconvert.h:76
int tm_min
minutes (0-59)
Definition: tdsconvert.h:80
int tm_hour
hours (0-23)
Definition: tdsconvert.h:79
int tm_mday
month day (1-31)
Definition: tdsconvert.h:78
Definition: tdsconvert.h:54
Definition: tdsconvert.h:74
int tm_sec
seconds (0-59)
Definition: tdsconvert.h:81
int tm_ms
milliseconds (0-999)
Definition: tdsconvert.h:82
int tm_mon
month (0-11)
Definition: tdsconvert.h:77
TDS_INT tds_convert(const TDSCONTEXT *tds_ctx, int srctype, const TDS_CHAR *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr)
tds_convert convert a type to another.
Definition: convert.c:1668
information on data, used by tds_datecrack
Definition: tds.h:165
size_t tds_strftime(char *buf, size_t maxsize, const char *format, const TDSDATEREC *dr)
format a date string according to an "extended" strftime(3) formatting definition.
Definition: convert.c:2749
Definition: tdsconvert.h:33
unsigned char tds_willconvert(int srctype, int desttype)
Test if a conversion is possible.
Definition: convert.c:2830
TDS_INT tds_get_null_type(int srctype)
Get same type but nullable.
Definition: convert.c:2706