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
777c2131
Commit
777c2131
authored
Apr 02, 2016
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-9862 Illegal mix of collation, when comparing column with CASE expression
parent
11b77e9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletion
+31
-1
mysql-test/r/ctype_cp850.result
mysql-test/r/ctype_cp850.result
+14
-0
mysql-test/t/ctype_cp850.test
mysql-test/t/ctype_cp850.test
+16
-0
sql/item.h
sql/item.h
+1
-1
No files found.
mysql-test/r/ctype_cp850.result
0 → 100644
View file @
777c2131
#
# Start of 5.5 tests
#
#
# MDEV-9862 Illegal mix of collation, when comparing column with CASE expression
#
SET NAMES cp850;
CREATE TABLE t1 (a CHAR(1) CHARACTER SET latin1);
SELECT a FROM t1 WHERE CASE a WHEN 'aaaa' THEN 'Y' WHEN 'aaaa' THEN 'Y' ELSE NULL END <> a;
a
DROP TABLE t1;
#
# End of 5.5 tests
#
mysql-test/t/ctype_cp850.test
0 → 100644
View file @
777c2131
--
echo
#
--
echo
# Start of 5.5 tests
--
echo
#
--
echo
#
--
echo
# MDEV-9862 Illegal mix of collation, when comparing column with CASE expression
--
echo
#
SET
NAMES
cp850
;
CREATE
TABLE
t1
(
a
CHAR
(
1
)
CHARACTER
SET
latin1
);
SELECT
a
FROM
t1
WHERE
CASE
a
WHEN
'aaaa'
THEN
'Y'
WHEN
'aaaa'
THEN
'Y'
ELSE
NULL
END
<>
a
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 5.5 tests
--
echo
#
sql/item.h
View file @
777c2131
...
...
@@ -2175,7 +2175,7 @@ public:
max_length
=
0
;
name
=
name_par
?
name_par
:
(
char
*
)
"NULL"
;
fixed
=
1
;
collation
.
set
(
&
my_charset_bin
,
DERIVATION_IGNORABLE
);
collation
.
set
(
&
my_charset_bin
,
DERIVATION_IGNORABLE
,
MY_REPERTOIRE_ASCII
);
}
enum
Type
type
()
const
{
return
NULL_ITEM
;
}
bool
eq
(
const
Item
*
item
,
bool
binary_cmp
)
const
;
...
...
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