Go to the source code of this file.
Go to the SVN repository for this file.
◆ DoTest
#define DoTest |
( |
|
a, |
|
|
|
b |
|
) |
| DoTest(a,b,__LINE__) |
◆ LEN
◆ NAME_TEST
Value: do { \
if (
strcmp(
C(name), expected_name) != 0) \
{ \
sprintf(
buf,
"wrong name in column %d expected '%s' got '%s'", index, expected_name,
C(name)); \
ODBC_REPORT_ERROR(
buf); \
} \
} while(0)
int strcmp(const char *str1, const char *str2)
◆ DoTest()
Definition at line 56 of file tables.c.
References catalog, CHKCloseCursor, CHKFetch, CHKTables, exit(), expect, expect_col, expected_type, LEN, NULL, odbc_driver_is_freetds(), odbc_use_version3, output, ReadCol(), schema, SQL_NULL_DATA, SQL_SUCCESS, strcasecmp, strcat, util::strcmp(), T, table, and TestName().
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 130 of file tables.c.
References catalog, DoTest, expect, expect_col, expected_type, mssql2005, NULL, odbc_command_with_result(), odbc_connect(), odbc_db_is_microsoft(), odbc_db_version_int(), odbc_disconnect(), odbc_stmt, odbc_use_version3, schema, and table.
◆ ReadCol()
◆ TestName()
Definition at line 21 of file tables.c.
References buf, CHKColAttribute, CHKDescribeCol, len, NAME_TEST, NULL, odbc_db_is_microsoft(), SQL_DESC_LABEL, SQL_DESC_NAME, TDS_VECTOR_SIZE, and type.
Referenced by DoTest().
◆ catalog
◆ cnamesize
◆ expect
◆ expect_col
◆ expected_type
char expected_type[20] = "SYSTEM TABLE" |
|
static |
◆ output
◆ schema
◆ table
const char* table = "sysobjects" |
|
static |