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
2adf2fad
Commit
2adf2fad
authored
Aug 24, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for InnoDB replace/auto_increment bug when insert_id is
forced by the user
parent
b938f5a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+4
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+22
-0
No files found.
mysql-test/r/innodb.result
View file @
2adf2fad
...
...
@@ -475,3 +475,7 @@ a
1
2
4
id name value uid
1 one one value 101
3 three three value 103
6 two other value 102
mysql-test/t/innodb.test
View file @
2adf2fad
...
...
@@ -490,3 +490,25 @@ delete from t1 where a=3;
insert
into
t1
values
(
NULL
);
select
*
from
t1
;
drop
table
t1
;
#Slashdot bug
create
table
t1
(
id
int
auto_increment
primary
key
,
name
varchar
(
32
)
not
null
,
value
text
not
null
,
uid
int
not
null
,
unique
key
(
name
,
uid
)
)
type
=
innodb
;
insert
into
t1
values
(
1
,
'one'
,
'one value'
,
101
),
(
2
,
'two'
,
'two value'
,
102
),(
3
,
'three'
,
'three value'
,
103
);
set
insert_id
=
5
;
replace
into
t1
(
value
,
name
,
uid
)
values
(
'other value'
,
'two'
,
102
);
delete
from
t1
where
uid
=
102
;
set
insert_id
=
5
;
replace
into
t1
(
value
,
name
,
uid
)
values
(
'other value'
,
'two'
,
102
);
set
insert_id
=
6
;
replace
into
t1
(
value
,
name
,
uid
)
values
(
'other value'
,
'two'
,
102
);
select
*
from
t1
;
drop
table
t1
;
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