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
3ebf1916
Commit
3ebf1916
authored
May 24, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge april.(none):/home/svoj/devel/mysql/BUG12873/mysql-5.0
into april.(none):/home/svoj/devel/mysql/BUG17001/mysql-5.0
parents
c06d757e
ca88ca16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
heap/hp_write.c
heap/hp_write.c
+1
-1
mysql-test/r/heap_btree.result
mysql-test/r/heap_btree.result
+3
-0
mysql-test/t/heap_btree.test
mysql-test/t/heap_btree.test
+8
-0
No files found.
heap/hp_write.c
View file @
3ebf1916
...
...
@@ -105,7 +105,7 @@ int hp_rb_write_key(HP_INFO *info, HP_KEYDEF *keyinfo, const byte *record,
custom_arg
.
key_length
=
hp_rb_make_key
(
keyinfo
,
info
->
recbuf
,
record
,
recpos
);
if
(
keyinfo
->
flag
&
HA_NOSAME
)
{
custom_arg
.
search_flag
=
SEARCH_FIND
|
SEARCH_
SAME
|
SEARCH_
UPDATE
;
custom_arg
.
search_flag
=
SEARCH_FIND
|
SEARCH_UPDATE
;
keyinfo
->
rb_tree
.
flag
=
TREE_NO_DUPS
;
}
else
...
...
mysql-test/r/heap_btree.result
View file @
3ebf1916
...
...
@@ -256,3 +256,6 @@ SELECT INDEX_LENGTH FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=DATABASE()
INDEX_LENGTH
21
DROP TABLE t1;
CREATE TABLE t1 (a INT, UNIQUE USING BTREE(a)) ENGINE=MEMORY;
INSERT INTO t1 VALUES(NULL),(NULL);
DROP TABLE t1;
mysql-test/t/heap_btree.test
View file @
3ebf1916
...
...
@@ -176,4 +176,12 @@ UPDATE t1 SET val=1;
SELECT
INDEX_LENGTH
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_SCHEMA
=
DATABASE
()
AND
TABLE_NAME
=
't1'
;
DROP
TABLE
t1
;
#
# BUG#12873 - BTREE index on MEMORY table with multiple NULL values doesn't
# work properly
#
CREATE
TABLE
t1
(
a
INT
,
UNIQUE
USING
BTREE
(
a
))
ENGINE
=
MEMORY
;
INSERT
INTO
t1
VALUES
(
NULL
),(
NULL
);
DROP
TABLE
t1
;
# End of 4.1 tests
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