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

- Check ENUM/SET duplicate values taking in account charset/collation.

This commit is contained in:
unknown
2004-10-26 10:41:14 +05:00
parent 52da7eb858
commit dc734355e6
4 changed files with 37 additions and 16 deletions

View File

@ -47,3 +47,16 @@ select hex(a) from t1;
hex(a)
878A
drop table t1;
create table t1(c enum(0x9353,0x9373) character set sjis);
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`c` enum('<27>S','<27>s') character set sjis default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
insert into t1 values (0x9353);
insert into t1 values (0x9373);
select hex(c) from t1;
hex(c)
9353
9373
drop table t1;

View File

@ -1678,8 +1678,6 @@ a int(11) YES 1
b enum('value','<27><><EFBFBD>_value','<27><><EFBFBD>') value
drop table t1;
CREATE TABLE t1 (c enum('a', 'A') BINARY);
Warnings:
Note 1291 Column 'c' has duplicated value 'a' in ENUM
INSERT INTO t1 VALUES ('a'),('A');
SELECT * FROM t1;
c

View File

@ -41,3 +41,13 @@ create table t1 (a char(10) character set sjis);
insert into t1 values (0x878A);
select hex(a) from t1;
drop table t1;
#
# Bug #6206 ENUMs are not case sensitive even if declared BINARY
#
create table t1(c enum(0x9353,0x9373) character set sjis);
show create table t1;
insert into t1 values (0x9353);
insert into t1 values (0x9373);
select hex(c) from t1;
drop table t1;