mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
part one of the fix for the bug #2077: accented characters in enum/defaul values are reported incorrectly
mysql-test/r/type_enum.result: test for the bug #2077: accented characters in enum/defaul values are reported incorrectly mysql-test/t/type_enum.test: test for the bug #2077: accented characters in enum/defaul values are reported incorrectly
This commit is contained in:
@ -1636,3 +1636,13 @@ t1 CREATE TABLE `t1` (
|
||||
`a` enum('','a','b') NOT NULL default 'b'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
create table t1 (a enum(0xE4, '1', '2') not null default 0xE4);
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
a enum('<27>','1','2') <09>
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` enum('<27>','1','2') NOT NULL default '?'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
|
@ -24,3 +24,13 @@ drop table t1;
|
||||
create table t1 (a enum (' ','a','b ') not null default 'b ');
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #2077
|
||||
#
|
||||
|
||||
create table t1 (a enum(0xE4, '1', '2') not null default 0xE4);
|
||||
show columns from t1;
|
||||
# should be fixed ASAP
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user