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
2fd2fd77
Commit
2fd2fd77
authored
Jun 12, 2020
by
Vicențiu Ciorbaru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong merge of commit
d218d1aa
parent
8c67ffff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
mysql-test/r/index_merge_innodb.result
mysql-test/r/index_merge_innodb.result
+1
-5
mysql-test/t/index_merge_innodb.test
mysql-test/t/index_merge_innodb.test
+0
-4
sql/uniques.h
sql/uniques.h
+3
-0
No files found.
mysql-test/r/index_merge_innodb.result
View file @
2fd2fd77
...
...
@@ -815,8 +815,6 @@ SET @save_sort_buffer_size=@@sort_buffer_size;
SET @save_innodb_file_format= @@innodb_file_format;
SET @save_innodb_large_prefix= @@innodb_large_prefix;
SET sort_buffer_size=2048;
SET GLOBAL innodb_file_format = BARRACUDA;
SET GLOBAL innodb_large_prefix = ON;
CREATE TABLE t1 (
a VARCHAR(1024) CHARACTER SET UTF8 PRIMARY KEY,
b INT,
...
...
@@ -826,7 +824,7 @@ INDEX (b)
INSERT INTO t1 SELECT seq, seq, seq from seq_1_to_100;
EXPLAIN SELECT * FROM t1 WHERE a='1' OR b < 5;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 index_merge PRIMARY,b b,PRIMARY 5,3074 NULL
4
Using sort_union(b,PRIMARY); Using where
1 SIMPLE t1 index_merge PRIMARY,b b,PRIMARY 5,3074 NULL
5
Using sort_union(b,PRIMARY); Using where
SELECT * FROM t1 WHERE a='1' OR b < 5;
a b c
2 2 2
...
...
@@ -834,7 +832,5 @@ a b c
4 4 4
1 1 1
DROP TABLE t1;
SET GLOBAL innodb_file_format = @save_innodb_file_format;
SET GLOBAL innodb_large_prefix = @save_innodb_large_prefix;
SET sort_buffer_size= @save_sort_buffer_size;
disconnect disable_purge;
mysql-test/t/index_merge_innodb.test
View file @
2fd2fd77
...
...
@@ -208,8 +208,6 @@ SET @save_sort_buffer_size=@@sort_buffer_size;
SET
@
save_innodb_file_format
=
@@
innodb_file_format
;
SET
@
save_innodb_large_prefix
=
@@
innodb_large_prefix
;
SET
sort_buffer_size
=
2048
;
SET
GLOBAL
innodb_file_format
=
BARRACUDA
;
SET
GLOBAL
innodb_large_prefix
=
ON
;
CREATE
TABLE
t1
(
a
VARCHAR
(
1024
)
CHARACTER
SET
UTF8
PRIMARY
KEY
,
...
...
@@ -222,8 +220,6 @@ EXPLAIN SELECT * FROM t1 WHERE a='1' OR b < 5;
SELECT
*
FROM
t1
WHERE
a
=
'1'
OR
b
<
5
;
DROP
TABLE
t1
;
SET
GLOBAL
innodb_file_format
=
@
save_innodb_file_format
;
SET
GLOBAL
innodb_large_prefix
=
@
save_innodb_large_prefix
;
SET
sort_buffer_size
=
@
save_sort_buffer_size
;
disconnect
disable_purge
;
sql/uniques.h
View file @
2fd2fd77
...
...
@@ -85,6 +85,9 @@ class Unique :public Sql_alloc
{
size_t
max_elems_in_tree
=
max_in_memory_size
/
ALIGN_SIZE
(
sizeof
(
TREE_ELEMENT
)
+
key_size
);
if
(
max_elems_in_tree
==
0
)
max_elems_in_tree
=
1
;
return
(
int
)
(
sizeof
(
uint
)
*
(
1
+
nkeys
/
max_elems_in_tree
));
}
...
...
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