NCBI C++ ToolKit
|
Go to the source code of this file.
Go to the SVN repository for this file.
Macros | |
#define | test(s, d, r) test0(s, sizeof(s) - 1, 0, d, r, __LINE__) |
#define | test2(s, m, d, r) test0(s, sizeof(s) - 1, m, d, r, __LINE__) |
Functions | |
static void | test0 (const char *src, int len, int midtype, int dsttype, const char *result, int line) |
int | main (int argc, char **argv) |
Variables | |
static TDSCONTEXT | ctx |
This test exercise manually conversions from types. More... | |
static int | int_types [] |
static const char * | int_values [] |
Definition at line 166 of file t0007.c.
References big_endian, buf, conv_result::cc_t::c, conv_result::cc, ctx, tds_locale::date_fmt, expected, free(), conv_result::i, int_types, int_values, conv_result::cc_t::len, tds_context::locale, conv_result::n, NULL, tdsnumeric::precision, tdsnumeric::scale, util::strcmp(), strdup, SYB5BIGDATETIME, SYB5BIGTIME, SYBBINARY, SYBCHAR, SYBDATE, SYBDATETIME, SYBINT1, SYBINT2, SYBINT4, SYBINT8, SYBMONEY, SYBMONEY4, SYBMSDATETIME2, SYBTIME, SYBUINT1, SYBUINT2, SYBUINT4, SYBUINT8, SYBUNIQUE, SYBVARCHAR, tds_convert, TDS_CONVERT_CHAR, tds_free_locale, tds_get_locale, tds_prtype, test, test2, and value.
|
static |
Definition at line 34 of file t0007.c.
References conv_result::bi, buf, conv_result::c, copy(), ctx, tdsunique::Data1, tdsunique::Data2, tdsunique::Data3, tdsunique::Data4, conv_result::date, conv_result::dt, tdsdatetime::dtdays, tdsdatetime::dttime, exit(), free(), conv_result::i, i, conv_result::ib, len, result, conv_result::si, util::strcmp(), SYB5BIGDATETIME, SYB5BIGTIME, SYBBINARY, SYBCHAR, SYBDATE, SYBDATETIME, SYBINT1, SYBINT2, SYBINT4, SYBINT8, SYBTIME, SYBUINT1, SYBUINT2, SYBUINT4, SYBUINT8, SYBUNIQUE, SYBVARCHAR, tds_convert, tds_new, conv_result::ti, conv_result::time, conv_result::u, conv_result::ubi, conv_result::ui, and conv_result::usi.
|
static |
|
static |
|
static |
Definition at line 136 of file t0007.c.
Referenced by main().