summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <venu@myvenu.com>2003-02-15 15:13:58 -0800
committerunknown <venu@myvenu.com>2003-02-15 15:13:58 -0800
commit2606a90a26d20e17322edfd352239920e1b46275 (patch)
tree23557f8ad8cb549d4992b6ec40040644fd0ba91f /tests
parent5665b79a4341ba02f432f90803adf0bbf7cbd762 (diff)
downloadmariadb-git-2606a90a26d20e17322edfd352239920e1b46275.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index 2e893e491ad..c568fb4e0a3 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -5880,6 +5880,26 @@ static void test_field_misc()
mysql_free_result(result);
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)
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_open_direct(); /* direct execution in the middle of open stmts */
test_fetch_null(); /* to fetch null data */