summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-12-01 13:12:31 +0400
committerunknown <holyfoot/hf@hfmain.(none)>2007-12-01 13:12:31 +0400
commit0baec33ff37c00009d3d6ed552dac86dbe8c3308 (patch)
tree50cb3f5485f00e6889e8678224ea6c2bdbc95d5a /tests
parent75e6a71b4d066ee8e6ad40e20d5c1720fa39f4ff (diff)
parent4100e3e4c2408cb1f28823842db8d8d448aebe4b (diff)
downloadmariadb-git-0baec33ff37c00009d3d6ed552dac86dbe8c3308.tar.gz
Merge bk@192.168.21.1:mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/my50-mrg tests/mysql_client_test.c: Auto merged
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 c0b8bd610f4..9cc2af25529 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -5643,6 +5643,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);
}