diff options
author | unknown <kaa@kaamos.(none)> | 2008-03-08 11:21:11 +0300 |
---|---|---|
committer | unknown <kaa@kaamos.(none)> | 2008-03-08 11:21:11 +0300 |
commit | 92e0fbbe84b3e030755785df61d3083355bedded (patch) | |
tree | 3f8c04b78eba37382f9dd9ced7faa52814abeba5 /tests | |
parent | 561827e2389ef8124b5d3810ce92a5e32f96913b (diff) | |
parent | 0c1dd98ec883323fc79fd5ac558ed3d278a68c31 (diff) | |
download | mariadb-git-92e0fbbe84b3e030755785df61d3083355bedded.tar.gz |
Merge kaamos.(none):/data/src/opt/bug34889/my50
into kaamos.(none):/data/src/opt/bug34889/my51
sql/sql_insert.cc:
Null merge.
tests/mysql_client_test.c:
Manual merge.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 3776be79399..3e9006acb22 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -15550,6 +15550,22 @@ static void test_mysql_insert_id() myquery(rc); res= mysql_insert_id(mysql); DIE_UNLESS(res == 0); + + /* + Test for bug #34889: mysql_client_test::test_mysql_insert_id test fails + sporadically + */ + rc= mysql_query(mysql, "create table t2 (f1 int not null primary key auto_increment, f2 varchar(255))"); + myquery(rc); + rc= mysql_query(mysql, "insert into t2 values (null,'b')"); + myquery(rc); + rc= mysql_query(mysql, "insert into t1 select 5,'c'"); + myquery(rc); + res= mysql_insert_id(mysql); + DIE_UNLESS(res == 0); + rc= mysql_query(mysql, "drop table t2"); + myquery(rc); + rc= mysql_query(mysql, "insert into t1 select null,'d'"); myquery(rc); res= mysql_insert_id(mysql); |