mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
logging_ok:
Logging to logging@openlogging.org accepted sql_show.cc, type_enum.test, type_enum.result: Bug #5628 German characters in field-defs will be '?' with some table definitions
This commit is contained in:
parent
be7415c11a
commit
b5b7801917
4 changed files with 33 additions and 0 deletions
|
@ -24,6 +24,7 @@ bar@bar.udmsearch.izhnet.ru
|
|||
bar@deer.(none)
|
||||
bar@gw.udmsearch.izhnet.ru
|
||||
bar@mysql.com
|
||||
bar@noter.intranet.mysql.r18.ru
|
||||
bell@laptop.sanja.is.com.ua
|
||||
bell@sanja.is.com.ua
|
||||
bk@admin.bk
|
||||
|
|
|
@ -1661,3 +1661,19 @@ t1 CREATE TABLE `t1` (
|
|||
`a` enum('ä','1','2') NOT NULL default 'ä'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
CREATE TABLE t1 (
|
||||
a INT default 1,
|
||||
b ENUM('value','öäü_value','ÊÃÕ') character set latin1 NOT NULL
|
||||
);
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) default '1',
|
||||
`b` enum('value','öäü_value','ÊÃÕ') NOT NULL default 'value'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
show columns from t1;
|
||||
Field Type Null Key Default Extra
|
||||
a int(11) YES 1
|
||||
b enum('value','öäü_value','ÊÃÕ') value
|
||||
drop table t1;
|
||||
|
|
|
@ -45,3 +45,17 @@ create table t1 (a enum(0xE4, '1', '2') not null default 0xE4);
|
|||
show columns from t1;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
#
|
||||
# Bug #5628 German characters in field-defs will be '?'
|
||||
# with some table definitions
|
||||
#
|
||||
set names latin1;
|
||||
CREATE TABLE t1 (
|
||||
a INT default 1,
|
||||
b ENUM('value','öäü_value','ÊÃÕ') character set latin1 NOT NULL
|
||||
);
|
||||
show create table t1;
|
||||
show columns from t1;
|
||||
drop table t1;
|
||||
|
|
|
@ -1265,6 +1265,8 @@ store_create_info(THD *thd, TABLE *table, String *packet)
|
|||
// check for surprises from the previous call to Field::sql_type()
|
||||
if (type.ptr() != tmp)
|
||||
type.set(tmp, sizeof(tmp), system_charset_info);
|
||||
else
|
||||
type.set_charset(system_charset_info);
|
||||
|
||||
field->sql_type(type);
|
||||
packet->append(type.ptr(), type.length(), system_charset_info);
|
||||
|
|
Loading…
Add table
Reference in a new issue