summaryrefslogtreecommitdiff
path: root/mysql-test/main/func_encrypt_ucs2.test
blob: 6c1306955aa819e29df4e94e7bfe5ac3421ceddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- source include/have_des.inc
-- source include/have_ucs2.inc

--echo #
--echo # Bug#59648 my_strtoll10_mb2: Assertion `(*endptr - s) % 2 == 0' failed.
--echo #

SELECT CHAR_LENGTH(DES_ENCRYPT(0, CHAR('1' USING ucs2)));
SELECT CONVERT(DES_ENCRYPT(0, CHAR('1' USING ucs2)),UNSIGNED);

#enable after fix MDEV-28643, MDEV-27871
--disable_view_protocol
SELECT CHAR_LENGTH(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' USING ucs2)));
SELECT CONVERT(DES_DECRYPT(0xFF0DC9FC9537CA75F4, CHAR('1' using ucs2)), UNSIGNED);
--enable_view_protocol