Skip to content

Commit b092871

Browse files
author
Alexander Barkov
committed
Adding a test for "MDEV-6973 XOR aggregates argument collations".
The bug itself was earlier fixed by this patch: commit 3709c7f MDEV-8222 "string_field LIKE int_const" returns a wrong result in case of UCS2 MDEV-8257 Erroneous "Impossible where" when mixing decimal comparison and LIKE
1 parent 70b82ef commit b092871

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

mysql-test/r/ctype_uca.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13573,3 +13573,15 @@ DROP TABLE t1;
1357313573
#
1357413574
# End of MariaDB-10.0 tests
1357513575
#
13576+
#
13577+
# Start of MariaDB-10.1 tests
13578+
#
13579+
#
13580+
# MDEV-6973 XOR aggregates argument collations
13581+
#
13582+
SELECT '10' COLLATE utf8_general_ci XOR '20' COLLATE utf8_unicode_ci;
13583+
'10' COLLATE utf8_general_ci XOR '20' COLLATE utf8_unicode_ci
13584+
0
13585+
#
13586+
# End of MariaDB-10.1 tests
13587+
#

mysql-test/t/ctype_uca.test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,3 +620,17 @@ DROP TABLE t1;
620620
--echo #
621621
--echo # End of MariaDB-10.0 tests
622622
--echo #
623+
624+
--echo #
625+
--echo # Start of MariaDB-10.1 tests
626+
--echo #
627+
628+
--echo #
629+
--echo # MDEV-6973 XOR aggregates argument collations
630+
--echo #
631+
SELECT '10' COLLATE utf8_general_ci XOR '20' COLLATE utf8_unicode_ci;
632+
633+
634+
--echo #
635+
--echo # End of MariaDB-10.1 tests
636+
--echo #

0 commit comments

Comments
 (0)