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
0a68b637
Commit
0a68b637
authored
Mar 31, 2007
by
sergefp@pylon.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/psergey/bk-trees/mysql-5.0-opt
into mysql.com:/home/psergey/mysql-5.1-merge2
parents
bd95e76b
dd7e39f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
265 additions
and
40 deletions
+265
-40
mysql-test/r/range.result
mysql-test/r/range.result
+130
-17
mysql-test/t/range.test
mysql-test/t/range.test
+130
-19
sql/opt_range.cc
sql/opt_range.cc
+5
-4
No files found.
mysql-test/r/range.result
View file @
0a68b637
...
@@ -726,23 +726,136 @@ index(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,c13,c14,c15,c16)
...
@@ -726,23 +726,136 @@ index(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,c13,c14,c15,c16)
);
);
insert into t1 (c1) values ('1'),('1'),('1'),('1');
insert into t1 (c1) values ('1'),('1'),('1'),('1');
select * from t1 where
select * from t1 where
c1 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
c1 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
and c2 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
and c3 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
and c4 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
and c5 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
and c6 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
and c7 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
and c8 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
and c9 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
and c10 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
and c11 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
and c12 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
and c13 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c14 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
and c2 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
and c15 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
and c16 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh")
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
;
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c3 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c4 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c5 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c6 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c7 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c8 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c9 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC")
and c10 in ("abcdefgh", "123456789", "qwertyuio", "asddfgh",
"abcdefg1", "123456781", "qwertyui1", "asddfg1",
"abcdefg2", "123456782", "qwertyui2", "asddfg2",
"abcdefg3", "123456783", "qwertyui3", "asddfg3",
"abcdefg4", "123456784", "qwertyui4", "asddfg4",
"abcdefg5", "123456785", "qwertyui5", "asddfg5",
"abcdefg6", "123456786", "qwertyui6", "asddfg6",
"abcdefg7", "123456787", "qwertyui7", "asddfg7",
"abcdefg8", "123456788", "qwertyui8", "asddfg8",
"abcdefg9", "123456789", "qwertyui9", "asddfg9",
"abcdefgA", "12345678A", "qwertyuiA", "asddfgA",
"abcdefgB", "12345678B", "qwertyuiB", "asddfgB",
"abcdefgC", "12345678C", "qwertyuiC", "asddfgC");
c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16
c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16
drop table t1;
drop table t1;
End of 4.1 tests
End of 4.1 tests
...
...
mysql-test/t/range.test
View file @
0a68b637
...
@@ -576,30 +576,141 @@ create table t1 (
...
@@ -576,30 +576,141 @@ create table t1 (
c13
char
(
10
),
c14
char
(
10
),
c15
char
(
10
),
c16
char
(
10
),
c13
char
(
10
),
c14
char
(
10
),
c15
char
(
10
),
c16
char
(
10
),
index
(
c1
,
c2
,
c3
,
c4
,
c5
,
c6
,
c7
,
c8
,
c9
,
c10
,
c11
,
c12
,
c13
,
c14
,
c15
,
c16
)
index
(
c1
,
c2
,
c3
,
c4
,
c5
,
c6
,
c7
,
c8
,
c9
,
c10
,
c11
,
c12
,
c13
,
c14
,
c15
,
c16
)
);
);
insert
into
t1
(
c1
)
values
(
'1'
),(
'1'
),(
'1'
),(
'1'
);
insert
into
t1
(
c1
)
values
(
'1'
),(
'1'
),(
'1'
),(
'1'
);
# This must run without crash and fast:
# This must run without crash and fast:
select
*
from
t1
where
select
*
from
t1
where
c1
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
c1
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
and
c2
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
and
c3
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
and
c4
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
and
c5
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
and
c6
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
and
c7
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
and
c8
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
and
c9
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
and
c10
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
and
c11
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
and
c12
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
and
c13
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c14
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
and
c2
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
and
c15
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
and
c16
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
)
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
;
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c3
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c4
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c5
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c6
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c7
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c8
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c9
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
)
and
c10
in
(
"abcdefgh"
,
"123456789"
,
"qwertyuio"
,
"asddfgh"
,
"abcdefg1"
,
"123456781"
,
"qwertyui1"
,
"asddfg1"
,
"abcdefg2"
,
"123456782"
,
"qwertyui2"
,
"asddfg2"
,
"abcdefg3"
,
"123456783"
,
"qwertyui3"
,
"asddfg3"
,
"abcdefg4"
,
"123456784"
,
"qwertyui4"
,
"asddfg4"
,
"abcdefg5"
,
"123456785"
,
"qwertyui5"
,
"asddfg5"
,
"abcdefg6"
,
"123456786"
,
"qwertyui6"
,
"asddfg6"
,
"abcdefg7"
,
"123456787"
,
"qwertyui7"
,
"asddfg7"
,
"abcdefg8"
,
"123456788"
,
"qwertyui8"
,
"asddfg8"
,
"abcdefg9"
,
"123456789"
,
"qwertyui9"
,
"asddfg9"
,
"abcdefgA"
,
"12345678A"
,
"qwertyuiA"
,
"asddfgA"
,
"abcdefgB"
,
"12345678B"
,
"qwertyuiB"
,
"asddfgB"
,
"abcdefgC"
,
"12345678C"
,
"qwertyuiC"
,
"asddfgC"
);
drop
table
t1
;
drop
table
t1
;
--
echo
End
of
4.1
tests
--
echo
End
of
4.1
tests
#
#
...
...
sql/opt_range.cc
View file @
0a68b637
...
@@ -283,7 +283,7 @@ class SEL_ARG :public Sql_alloc
...
@@ -283,7 +283,7 @@ class SEL_ARG :public Sql_alloc
enum
leaf_color
{
BLACK
,
RED
}
color
;
enum
leaf_color
{
BLACK
,
RED
}
color
;
enum
Type
{
IMPOSSIBLE
,
MAYBE
,
MAYBE_KEY
,
KEY_RANGE
}
type
;
enum
Type
{
IMPOSSIBLE
,
MAYBE
,
MAYBE_KEY
,
KEY_RANGE
}
type
;
enum
{
MAX_SEL_ARGS
=
64
000
};
enum
{
MAX_SEL_ARGS
=
16
000
};
SEL_ARG
()
{}
SEL_ARG
()
{}
SEL_ARG
(
SEL_ARG
&
);
SEL_ARG
(
SEL_ARG
&
);
...
@@ -5941,7 +5941,7 @@ tree_and(RANGE_OPT_PARAM *param,SEL_TREE *tree1,SEL_TREE *tree2)
...
@@ -5941,7 +5941,7 @@ tree_and(RANGE_OPT_PARAM *param,SEL_TREE *tree1,SEL_TREE *tree2)
}
}
result_keys
.
set_bit
(
key1
-
tree1
->
keys
);
result_keys
.
set_bit
(
key1
-
tree1
->
keys
);
#ifdef EXTRA_DEBUG
#ifdef EXTRA_DEBUG
if
(
*
key1
)
if
(
*
key1
&&
param
->
alloced_sel_args
<
SEL_ARG
::
MAX_SEL_ARGS
)
(
*
key1
)
->
test_use_count
(
*
key1
);
(
*
key1
)
->
test_use_count
(
*
key1
);
#endif
#endif
}
}
...
@@ -6100,6 +6100,7 @@ tree_or(RANGE_OPT_PARAM *param,SEL_TREE *tree1,SEL_TREE *tree2)
...
@@ -6100,6 +6100,7 @@ tree_or(RANGE_OPT_PARAM *param,SEL_TREE *tree1,SEL_TREE *tree2)
result
=
tree1
;
// Added to tree1
result
=
tree1
;
// Added to tree1
result_keys
.
set_bit
(
key1
-
tree1
->
keys
);
result_keys
.
set_bit
(
key1
-
tree1
->
keys
);
#ifdef EXTRA_DEBUG
#ifdef EXTRA_DEBUG
if
(
param
->
alloced_sel_args
<
SEL_ARG
::
MAX_SEL_ARGS
)
(
*
key1
)
->
test_use_count
(
*
key1
);
(
*
key1
)
->
test_use_count
(
*
key1
);
#endif
#endif
}
}
...
...
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