summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-07-20 04:21:46 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-07-20 04:21:46 +0500
commit568eccb513c4c0a1bd0553224ccd6f962f39035e (patch)
tree941c34ec63e96fde4aaf03e42d8b59e44d9ca70b /tests
parenta71eda722a5755c2d4a9cca7b1ad380a5d0d835a (diff)
parent615be59d630a84ef769a58e4e0ca0e280dbe2a71 (diff)
downloadmariadb-git-568eccb513c4c0a1bd0553224ccd6f962f39035e.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.1
into gleb.loc:/home/uchum/work/bk/5.1-opt mysql-test/t/disabled.def: Auto merged sql/set_var.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_insert.cc: SCCS merged tests/mysql_client_test.c: SCCS merged
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 6f279509614..eac1ad413ea 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -16304,6 +16304,38 @@ static void test_bug29687()
/*
+ Bug #29692 Single row inserts can incorrectly report a huge number of
+ row insertions
+*/
+
+static void test_bug29692()
+{
+ MYSQL* conn;
+
+ if (!(conn= mysql_init(NULL)))
+ {
+ myerror("test_bug29692 init failed");
+ exit(1);
+ }
+
+ if (!(mysql_real_connect(conn, opt_host, opt_user,
+ opt_password, opt_db ? opt_db:"test", opt_port,
+ opt_unix_socket, CLIENT_FOUND_ROWS)))
+ {
+ myerror("test_bug29692 connection failed");
+ mysql_close(mysql);
+ exit(1);
+ }
+ myquery(mysql_query(conn, "drop table if exists t1"));
+ myquery(mysql_query(conn, "create table t1(f1 int)"));
+ myquery(mysql_query(conn, "insert into t1 values(1)"));
+ DIE_UNLESS(1 == mysql_affected_rows(conn));
+ myquery(mysql_query(conn, "drop table t1"));
+ mysql_close(conn);
+}
+
+
+/*
Read and parse arguments and MySQL options from my.cnf
*/
@@ -16593,6 +16625,7 @@ static struct my_tests_st my_tests[]= {
{ "test_bug28934", test_bug28934 },
{ "test_bug27592", test_bug27592 },
{ "test_bug29687", test_bug29687 },
+ { "test_bug29692", test_bug29692 },
{ 0, 0 }
};