summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-12-01 00:46:44 +0400
committerunknown <holyfoot/hf@hfmain.(none)>2007-12-01 00:46:44 +0400
commit51f5ac6b29a7823836695d0f2dcfd4e3ef89bdb2 (patch)
treefc471579f6612b624f72147feb84761b29806c2b /tests
parent65b77b9df6c0cb53a7b77e83d9e3a74d5c07972f (diff)
parent4100e3e4c2408cb1f28823842db8d8d448aebe4b (diff)
downloadmariadb-git-51f5ac6b29a7823836695d0f2dcfd4e3ef89bdb2.tar.gz
Merge mysql.com:/home/hf/work/mrg/my50-mrg
into mysql.com:/home/hf/work/mrg/my51-mrg sql/mysqld.cc: Auto merged sql/protocol.cc: Auto merged storage/federated/ha_federated.cc: Auto merged tests/mysql_client_test.c: Auto merged include/mysql_com.h: merging libmysqld/lib_sql.cc: merging mysql-test/r/federated.result: merging mysql-test/t/federated.test: merging storage/federated/ha_federated.h: mergin
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 08805c4bcc1..409d67faf90 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -5914,6 +5914,20 @@ DROP TABLE IF EXISTS test_multi_tab";
(void) my_process_result_set(result);
mysql_free_result(result);
+ /*
+ Check if errors in one of the queries handled properly.
+ */
+ rc= mysql_query(mysql_local, "select 1; select * from not_existing_table");
+ myquery(rc);
+ result= mysql_store_result(mysql_local);
+ mysql_free_result(result);
+
+ rc= mysql_next_result(mysql_local);
+ DIE_UNLESS(rc > 0);
+
+ rc= mysql_next_result(mysql_local);
+ DIE_UNLESS(rc < 0);
+
mysql_close(mysql_local);
}