1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-20890 Illegal mix of collations with UUID()

This commit is contained in:
Alexander Barkov
2019-10-24 14:00:48 +04:00
parent 88cdfc5c7d
commit 8ba5af7eaf
8 changed files with 26 additions and 13 deletions

View File

@ -22,7 +22,7 @@ hex(inet_aton('127.1.1'))
7F010001
select length(uuid()), charset(uuid()), length(unhex(replace(uuid(),_utf8'-',_utf8'')));
length(uuid()) charset(uuid()) length(unhex(replace(uuid(),_utf8'-',_utf8'')))
36 utf8 16
36 latin1 16
set @a= uuid_short();
set @b= uuid_short();
select @b - @a;
@ -107,7 +107,7 @@ create table t1 as select uuid(), length(uuid());
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`uuid()` varchar(36) CHARACTER SET utf8 DEFAULT NULL,
`uuid()` varchar(36) DEFAULT NULL,
`length(uuid())` int(10) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;