Problems with ENUM in cp1251
am 17.03.2003 09:25:08 von camelHi. I have a problem with ENUM field type. I try to create table with
field type ENUM, the elements of ENUM is russian words in codepage cp1251.
After creating table i have got table with incorect structure.
Exaple with bug:
mysql> create table a(
-> id int(11) primary key not null,
-> b ENUM('ÈÕÄÁ=D1', 'ÓÔÒÏÊÎÁÑ', '=
ÓÒÅÄÎÁ=D1', 'ÐÏÌÎÁÑ')
-> );
Query OK, 0 rows affected (0.01 sec)
mysql> describe a;
+-------+-------------------------------------------------+- -----+-----+---=
------+-------+
| Field | Type | Null | Key
| Default | Extra |
+-------+-------------------------------------------------+- -----+-----+---=
------+-------+
| | int(11) | | PRI
| 0 | |
| e=9E | enum('','','ÓÔÒÏÊÎ=C1','','ÓÒÅÄÎÁ',' '=
,'ÐÏÌÎ=C1','') | YES | |
NULL | |
+-------+-------------------------------------------------+- -----+-----+---=
------+-------+
2 rows in set (0.00 sec)
Worked if we try to create without char '=D1'
mysql> create table a(
-> id int(11) primary key not null,
-> b ENUM('ÈÕÄÁ', 'ÓÔÒÏÊÎ=C1', 'ÓÒ=
ÅÄÎÁ', 'ÐÏÌÎ=C1')
-> );
Query OK, 0 rows affected (0.00 sec)
mysql> describe a;
+-------+-----------------------------------------+------+-- ---+---------+-=
------+
| Field | Type | Null | Key |
Default | Extra |
+-------+-----------------------------------------+------+-- ---+---------+-=
------+
| id | int(11) | | PRI | 0
| |
| b | enum('ÈÕÄÁ','ÓÔÒÏÊÎ=C1','ÓÒÅÄ=CE =
=C1','ÐÏÌÎ=C1') | YES | | NULL
| |
+-------+-----------------------------------------+------+-- ---+---------+-=
------+
2 rows in set (0.00 sec)
With KOI8-R it ok.
Bigildeev Artem.
------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail bugs-thread13977@lists.mysql.com
To unsubscribe, e-mail