20 #ifndef _tdsconvert_h_ 
   21 #define _tdsconvert_h_ 
   23 #include <freetds/pushvis.h> 
   74 #define TDS_CONVERT_FAIL    -1   
   75 #define TDS_CONVERT_NOAVAIL -2   
   76 #define TDS_CONVERT_SYNTAX  -3   
   77 #define TDS_CONVERT_NOMEM   -4   
   78 #define TDS_CONVERT_OVERFLOW    -5   
   81 #define TDS_CONVERT_CHAR    256 
   82 #define TDS_CONVERT_BINARY  257 
   87 TDS_INT tds_char2hex(TDS_CHAR *dest, TDS_UINT destlen, 
const TDS_CHAR * src, TDS_UINT srclen);
 
   99 #include <freetds/popvis.h> 
TDS_INT tds_convert(const TDSCONTEXT *context, int srctype, const TDS_CHAR *src, TDS_UINT srclen, int desttype, CONV_RESULT *cr)
tds_convert convert a type to another. 
Definition: convert.c:1793
this structure is not directed connected to a TDS protocol but keeps any DATE/TIME information...
Definition: tds.h:141
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:2907
Used by tds_datecrack. 
Definition: tds.h:154
unsigned char tds_willconvert(int srctype, int desttype)
Test if a conversion is possible. 
Definition: convert.c:2988
TDS_INT tds_get_null_type(int srctype)
Get same type but nullable. 
Definition: convert.c:2859