summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-09-11 20:31:40 +0300
committerunknown <monty@mashka.mysql.fi>2003-09-11 20:31:40 +0300
commit41824a35338012ff8196eb975f961d5e0f0e2a22 (patch)
tree1475a169c541e6b7aedb36103dd255fe52fc0517 /tests
parent07bc35e1d024e5e3b81b131a47878510f0521609 (diff)
parentd32bdcb1bfc274476cdd945e66e00f3ec31253c3 (diff)
downloadmariadb-git-41824a35338012ff8196eb975f961d5e0f0e2a22.tar.gz
merge with 4.1 tree
client/mysqltest.c: Auto merged include/mysql.h: Auto merged libmysql/errmsg.c: Auto merged libmysql/libmysql.c: Auto merged mysql-test/mysql-test-run.sh: Auto merged sql/field.cc: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_func.cc: Auto merged sql/item_func.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/share/portuguese/errmsg.txt: Auto merged sql/share/spanish/errmsg.txt: Auto merged sql/sql_select.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_yacc.yy: Auto merged tests/client_test.c: Auto merged
Diffstat (limited to 'tests')
-rw-r--r--tests/client_test.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/client_test.c b/tests/client_test.c
index c2bc966fee8..ac83ceda39f 100644
--- a/tests/client_test.c
+++ b/tests/client_test.c
@@ -412,7 +412,7 @@ uint my_process_stmt_result(MYSQL_STMT *stmt)
my_bool is_null[MAX_RES_FIELDS];
int rc, i;
- if (!(result= mysql_prepare_result(stmt))) /* No meta info */
+ if (!(result= mysql_get_metadata(stmt))) /* No meta info */
{
while (!mysql_fetch(stmt))
row_count++;
@@ -1017,7 +1017,7 @@ static void test_prepare_field_result()
verify_param_count(stmt,1);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
my_print_result_metadata(result);
@@ -1765,7 +1765,6 @@ static void test_bug1115()
MYSQL_BIND bind[1];
ulong length[1];
char szData[11];
- int nData=1;
myheader("test_bug1115");
@@ -3807,7 +3806,7 @@ static void test_prepare_resultset()
verify_param_count(stmt,0);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
my_print_result_metadata(result);
mysql_stmt_close(stmt);
@@ -6005,7 +6004,7 @@ static void test_field_misc()
rc = mysql_execute(stmt);
mystmt(stmt,rc);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
myassert(1 == my_process_stmt_result(stmt));
@@ -6046,7 +6045,7 @@ static void test_field_misc()
stmt = mysql_prepare(mysql, "SELECT @@table_type", 30);
mystmt_init(stmt);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
rc = mysql_execute(stmt);
@@ -6066,7 +6065,7 @@ static void test_field_misc()
stmt = mysql_prepare(mysql, "SELECT @@max_error_count", 30);
mystmt_init(stmt);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
rc = mysql_execute(stmt);
@@ -6086,7 +6085,7 @@ static void test_field_misc()
stmt = mysql_prepare(mysql, "SELECT @@max_allowed_packet", 30);
mystmt_init(stmt);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
rc = mysql_execute(stmt);
@@ -6106,7 +6105,7 @@ static void test_field_misc()
stmt = mysql_prepare(mysql, "SELECT @@sql_warnings", 30);
mystmt_init(stmt);
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
rc = mysql_execute(stmt);
@@ -6497,7 +6496,7 @@ static void test_explain_bug()
myassert( 2 == my_process_stmt_result(stmt));
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
fprintf(stdout, "\n total fields in the result: %d",
@@ -6533,7 +6532,7 @@ static void test_explain_bug()
myassert( 1 == my_process_stmt_result(stmt));
- result = mysql_prepare_result(stmt);
+ result = mysql_get_metadata(stmt);
mytest(result);
fprintf(stdout, "\n total fields in the result: %d",
@@ -7334,7 +7333,7 @@ static void test_mem_overun()
rc = mysql_execute(stmt);
mystmt(stmt,rc);
- field_res = mysql_prepare_result(stmt);
+ field_res = mysql_get_metadata(stmt);
mytest(field_res);
fprintf(stdout,"\n total fields : %d", mysql_num_fields(field_res));
@@ -7690,7 +7689,7 @@ static void test_ts()
stmt = mysql_prepare(mysql,"SELECT * FROM test_ts",50);
mystmt_init(stmt);
- prep_res = mysql_prepare_result(stmt);
+ prep_res = mysql_get_metadata(stmt);
mytest(prep_res);
rc = mysql_execute(stmt);