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
281a054f
Commit
281a054f
authored
Dec 22, 2000
by
tim@cane.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix replace bug w/ BDB tables by passing key_length to index_read_idx.
parent
94806e01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
mysql-test/t/replace.test
mysql-test/t/replace.test
+1
-0
sql/sql_insert.cc
sql/sql_insert.cc
+2
-1
No files found.
mysql-test/t/replace.test
View file @
281a054f
...
...
@@ -10,6 +10,7 @@ CREATE TABLE t1 (
PRIMARY
KEY
(
gesuchnr
,
benutzer_id
)
)
type
=
ISAM
;
replace
into
t1
(
gesuchnr
,
benutzer_id
)
values
(
2
,
1
);
replace
into
t1
(
gesuchnr
,
benutzer_id
)
values
(
1
,
1
);
replace
into
t1
(
gesuchnr
,
benutzer_id
)
values
(
1
,
1
);
alter
table
t1
type
=
myisam
;
...
...
sql/sql_insert.cc
View file @
281a054f
...
...
@@ -366,7 +366,8 @@ int write_record(TABLE *table,COPY_INFO *info)
}
key_copy
((
byte
*
)
key
,
table
,
key_nr
,
0
);
if
((
error
=
(
table
->
file
->
index_read_idx
(
table
->
record
[
1
],
key_nr
,
(
byte
*
)
key
,
0
,
(
byte
*
)
key
,
table
->
key_info
[
key_nr
].
key_length
,
HA_READ_KEY_EXACT
))))
goto
err
;
}
...
...
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