mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge kaamos.(none):/data/src/opt/bug34889/my50
into kaamos.(none):/data/src/opt/bug34889/my51
This commit is contained in:
@@ -15550,6 +15550,22 @@ static void test_mysql_insert_id()
|
|||||||
myquery(rc);
|
myquery(rc);
|
||||||
res= mysql_insert_id(mysql);
|
res= mysql_insert_id(mysql);
|
||||||
DIE_UNLESS(res == 0);
|
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'");
|
rc= mysql_query(mysql, "insert into t1 select null,'d'");
|
||||||
myquery(rc);
|
myquery(rc);
|
||||||
res= mysql_insert_id(mysql);
|
res= mysql_insert_id(mysql);
|
||||||
|
Reference in New Issue
Block a user