Commit 8e282561 authored by unknown's avatar unknown

Another misc variable test which is of bool type returning a longlong


tests/client_test.c:
  Another misc variable test which is of bool type returning a longlong
parent 705392ed
...@@ -5880,6 +5880,26 @@ static void test_field_misc() ...@@ -5880,6 +5880,26 @@ static void test_field_misc()
mysql_free_result(result); mysql_free_result(result);
mysql_stmt_close(stmt); mysql_stmt_close(stmt);
stmt = mysql_prepare(mysql, "SELECT @@sql_warnings", 30);
mystmt_init(stmt);
result = mysql_prepare_result(stmt);
mytest(result);
rc = mysql_execute(stmt);
mystmt(stmt,rc);
myassert(1 == my_process_stmt_result(stmt));
verify_prepare_field(result,0,
"@@sql_warnings","", /* field and its org name */
MYSQL_TYPE_LONGLONG, /* field type */
"", "", /* table and its org name */
"",1); /* db name, length */
mysql_free_result(result);
mysql_stmt_close(stmt);
} }
/* /*
...@@ -6022,7 +6042,6 @@ int main(int argc, char **argv) ...@@ -6022,7 +6042,6 @@ int main(int argc, char **argv)
start_time= time((time_t *)0); start_time= time((time_t *)0);
//test_field_misc(); /* check the field info for misc case, bug: #74 */
test_fetch_nobuffs(); /* to fecth without prior bound buffers */ test_fetch_nobuffs(); /* to fecth without prior bound buffers */
test_open_direct(); /* direct execution in the middle of open stmts */ test_open_direct(); /* direct execution in the middle of open stmts */
test_fetch_null(); /* to fetch null data */ test_fetch_null(); /* to fetch null data */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment