21 static const char *
proc =
"stat_proc";
22 static const char *
table =
"stat_proc";
25 #define LEN(x) (x) ? (SQLSMALLINT)strlen(x) : 0
32 odbc_command(
"IF OBJECT_ID('stat_proc') IS NOT NULL DROP PROC stat_proc");
34 sprintf(
sql,
"CREATE PROC stat_proc(@t %s) AS RETURN 0",
type);
58 odbc_command(
"IF OBJECT_ID('stat_t') IS NOT NULL DROP TABLE stat_t");
60 sprintf(
sql,
"CREATE TABLE stat_t(t %s)",
type);
81 #define STR(n) str(int_buf, n)
86 sprintf(
buf,
"%d",
n);
91 main(
int argc,
char *argv[])
#define CHKGetData(a, b, c, d, e, res)
#define odbc_command(cmd)
#define CHKProcedureColumns(a, b, c, d, e, f, g, h, res)
#define CHKCloseCursor(res)
#define CHKColumns(a, b, c, d, e, f, g, h, res)
static SQLRETURN odbc_connect(TDS_DBC *dbc, TDSLOGIN *login)
static const char * expected[]
int odbc_disconnect(void)
static const char * catalog
int main(int argc, char *argv[])
static SQLINTEGER cnamesize
static void ReadCol(int i)
static void TestTable(const char *type, const char *expected)
static const char * schema
static const char * table
static const char * str(char *buf, int n)
static void * no_unused_var_warn[]
static char software_version[]
static const char * column
static void TestProc(const char *type, const char *expected)
int strcmp(const char *str1, const char *str2)
#define SQL_TYPE_TIMESTAMP