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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f744b2a1
Commit
f744b2a1
authored
Jun 09, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-8283 crash in get_mm_leaf with xor on binary col
parent
93fc04ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
mysql-test/r/partition.result
mysql-test/r/partition.result
+13
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+14
-0
sql/opt_range.cc
sql/opt_range.cc
+2
-2
No files found.
mysql-test/r/partition.result
View file @
f744b2a1
...
...
@@ -2628,3 +2628,16 @@ alter table t1 drop partition if exists p5;
Warnings:
Note 1507 Error in list of partitions to DROP
DROP TABLE t1;
#
# Start of 10.1 tests
#
#
# MDEV-8283 crash in get_mm_leaf with xor on binary col
#
CREATE TABLE t1(a BINARY(80)) PARTITION BY KEY(a) PARTITIONS 3;
SELECT 1 FROM t1 WHERE a XOR 'a';
1
DROP TABLE t1;
#
# End of 10.1 tests
#
mysql-test/t/partition.test
View file @
f744b2a1
...
...
@@ -2884,3 +2884,17 @@ alter table t1 drop partition if exists p5;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Start of 10.1 tests
--
echo
#
--
echo
#
--
echo
# MDEV-8283 crash in get_mm_leaf with xor on binary col
--
echo
#
CREATE
TABLE
t1
(
a
BINARY
(
80
))
PARTITION
BY
KEY
(
a
)
PARTITIONS
3
;
SELECT
1
FROM
t1
WHERE
a
XOR
'a'
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.1 tests
--
echo
#
sql/opt_range.cc
View file @
f744b2a1
...
...
@@ -8370,8 +8370,8 @@ get_mm_leaf(RANGE_OPT_PARAM *param, COND *conf_func, Field *field,
value
->
result_type
()
==
STRING_RESULT
&&
key_part
->
image_type
==
Field
::
itRAW
&&
field
->
charset
()
!=
conf_func
->
compare_collation
()
&&
!
(
conf_func
->
compare_collation
()
->
state
&
MY_CS_BINSORT
&&
(
type
==
Item_func
::
EQUAL_FUNC
||
type
==
Item_func
::
EQ_FUNC
)
))
!
(
(
type
==
Item_func
::
EQUAL_FUNC
||
type
==
Item_func
::
EQ_FUNC
)
&&
conf_func
->
compare_collation
()
->
state
&
MY_CS_BINSORT
))
goto
end
;
if
(
value
->
cmp_type
()
==
TIME_RESULT
&&
field
->
cmp_type
()
!=
TIME_RESULT
)
goto
end
;
...
...
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