diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-10-18 10:24:53 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-10-18 10:24:53 +0400 |
commit | e0b6294338fdfc8a4a8b42e6b199c588453be879 (patch) | |
tree | 9b3942c46a0dc0f915eb631c65679587a7a34250 /mysql-test/main/partition_ucs2.result | |
parent | 0b9cee2cbfe6bce17dca980764076c65e14513f5 (diff) | |
download | mariadb-git-e0b6294338fdfc8a4a8b42e6b199c588453be879.tar.gz |
MDEV-20855 Crash with PARTITION BY LIST and extended characters
The code in convert_charset_partition_constant() did not
take into account that the call for item->safe_charset_converter()
can return NULL when conversion is not safe.
Note, 10.2 was not affected. The test for NULL presents in 10.2,
but it disappeared in 10.3 in a mistake. Restoring the test.
Diffstat (limited to 'mysql-test/main/partition_ucs2.result')
-rw-r--r-- | mysql-test/main/partition_ucs2.result | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/partition_ucs2.result b/mysql-test/main/partition_ucs2.result new file mode 100644 index 00000000000..ae2f3f15fa3 --- /dev/null +++ b/mysql-test/main/partition_ucs2.result @@ -0,0 +1,13 @@ +# +# Start of 10.3 tests +# +# +# MDEV-20855 Crash with PARTITION BY LIST and extended characters +# +SET NAMES utf8; +CREATE OR REPLACE TABLE t1 (a TIME) +PARTITION BY LIST COLUMNS (a) (PARTITION p0 VALUES IN (_ucs2 0x0411)); +ERROR HY000: This partition function is not allowed +# +# End of 10.3 tests +# |