Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.0.20
-
None
-
Server: hostnamectl
Static hostname: intwebsrv1
Icon name: computer-vm
Chassis: vm
Machine ID: *****************************
Boot ID: *****************************
Virtualization: microsoft
Operating System: Debian GNU/Linux 8 (jessie)
Kernel: Linux 3.16.0-4-amd64
Architecture: x86-64
my.cnf:
[mysql]
default-character-set=utf8
[mysqld]
collation_server=utf8_unicode_ci
character_set_server=utf8
default-character-set=utf8
init_connect='SETcollation_connection=utf8_unicode_ci'
init_connect='SETNAMESutf8'
mySql:
Server version: 10.0.20-MariaDB-0+deb8u1-log (Debian)Server: hostnamectl Static hostname: intwebsrv1 Icon name: computer-vm Chassis: vm Machine ID: ***************************** Boot ID: ***************************** Virtualization: microsoft Operating System: Debian GNU/Linux 8 (jessie) Kernel: Linux 3.16.0-4-amd64 Architecture: x86-64 my.cnf: [mysql] default-character-set=utf8 [mysqld] collation_server=utf8_unicode_ci character_set_server=utf8 default-character-set=utf8 init_connect='SETcollation_connection=utf8_unicode_ci' init_connect='SETNAMESutf8' mySql: Server version: 10.0.20-MariaDB-0+deb8u1-log (Debian)
Description
DROP TABLE IF EXISTS `table1`;
|
CREATE TABLE IF NOT EXISTS `table1` (
|
`Tekst` varchar(255) CHARACTER SET latin1 NOT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
INSERT INTO `table1` (`Tekst`) VALUES
|
('A'),
|
('a'),
|
('b'),
|
('c'),
|
('d'),
|
('E'),
|
('e'),
|
('O'),
|
('o'),
|
('Æ'),
|
('Ø'),
|
('Å'),
|
('æ'),
|
('ø'),
|
('å'),
|
('x'),
|
('y'),
|
('z');
|
|
|
SHOW FULL COLUMNS FROM table1; => Collation = latin1_swedish_ci
|
|
|
USE test;
|
show variables like 'character%';
|
|
|
=>
|
Variable_name Value
|
-----------------------------------
|
character_set_client utf8mb4
|
character_set_connection utf8mb4
|
character_set_database latin1
|
character_set_filesystem binary
|
character_set_results utf8mb4
|
character_set_server utf8
|
character_set_system utf8
|
|
|
SELECT * FROM table1 ORDER BY Tekst ASC
|
|
|
Tekst
|
A
|
a
|
b
|
c
|
d
|
e
|
E
|
O
|
o
|
x
|
y
|
z
|
Å
|
å
|
æ
|
Æ
|
ø
|
Ø
|
|
|
Problem:
|
1 - Å and å before æ (should be last)
|
2 - æ before Æ (flipped)
|
3 - ø before Ø (flipped)
|
4 - e before E (flipped)
|
|
|
ENGINE=InnoDB DEFAULT CHARSET=latin1; <= Gives same result
|
Is this is a bug or is it my setup that causes problems?