diff options
author | unknown <venu@myvenu.com> | 2003-01-25 22:52:45 -0800 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2003-01-25 22:52:45 -0800 |
commit | e6eba17c64371a069d418100430ff016c6ce647f (patch) | |
tree | 0ef66128d373412ebc17914cb5a14786d85448fb /tests | |
parent | 433307fafb1bc315a4e92c995f50d052c8d5eb36 (diff) | |
download | mariadb-git-e6eba17c64371a069d418100430ff016c6ce647f.tar.gz |
Remove un-used variables
Pure coverage tests (debug only)
include/mysql.h:
Remove un-used variables
tests/client_test.c:
Pure coverage tests (debug only)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/client_test.c b/tests/client_test.c index 409bbcfdd56..c7ac4a8aeb7 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -4967,11 +4967,28 @@ static void test_pure_coverage() stmt = mysql_prepare(mysql,"insert into test_pure(c67788) values(10)",100); mystmt_init_r(stmt); +#ifndef DBUG_OFF + stmt = mysql_prepare(mysql,(const char *)0,0); + mystmt_init_r(stmt); + + stmt = mysql_prepare(mysql,"insert into test_pure(c2) values(10)",100); + mystmt_init(stmt); + + verify_param_count(stmt, 0); + + rc = mysql_bind_param(stmt, bind); + mystmt_r(stmt, rc); + + mysql_stmt_close(stmt); +#endif + stmt = mysql_prepare(mysql,"insert into test_pure(c2) values(?)",100); mystmt_init(stmt); +#ifndef DBUG_OFF rc = mysql_execute(stmt); mystmt_r(stmt, rc);/* No parameters supplied */ +#endif bind[0].length= &length; bind[0].is_null= 0; @@ -4999,6 +5016,11 @@ static void test_pure_coverage() rc = mysql_execute(stmt); mystmt(stmt, rc); +#ifndef DBUG_OFF + rc = mysql_bind_result(stmt, (MYSQL_BIND *)0); + mystmt_r(stmt, rc); +#endif + rc = mysql_stmt_store_result(stmt); mystmt(stmt, rc); |