Commit b6d08e4b authored by venu@myvenu.com's avatar venu@myvenu.com

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

parent c52d1035
...@@ -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