Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
88a1ab6c
Commit
88a1ab6c
authored
Mar 08, 2008
by
kaa@kaamos.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge kaamos.(none):/data/src/opt/bug34889/my50
into kaamos.(none):/data/src/opt/bug34889/my51
parents
4181d66b
80d89023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
tests/mysql_client_test.c
tests/mysql_client_test.c
+16
-0
No files found.
tests/mysql_client_test.c
View file @
88a1ab6c
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment