Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL)
-
None
Description
The problem described in MDEV-28067 is also repeatable on the table level:
CREATE OR REPLACE TABLE t1 (a CHAR(10)) COLLATE latin1_swedish_ci COLLATE latin1_bin; |
SHOW CREATE TABLE t1; |
+-------+------------------------------------------------------------------------------------------------------------------------------+
|
| Table | Create Table |
|
+-------+------------------------------------------------------------------------------------------------------------------------------+
|
| t1 | CREATE TABLE `t1` (
|
`a` char(10) COLLATE latin1_bin DEFAULT NULL
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_bin |
|
+-------+------------------------------------------------------------------------------------------------------------------------------+
|
The expected behaviour would be to return a "conflicting declarations" error.
The problem is also repeatable on the database level:
CREATE OR REPLACE database db1 COLLATE latin1_swedish_ci COLLATE latin1_bin; |
SHOW CREATE DATABASE db1; |
+----------+-----------------------------------------------------------------------------------+
|
| Database | Create Database |
|
+----------+-----------------------------------------------------------------------------------+
|
| db1 | CREATE DATABASE `db1` /*!40100 DEFAULT CHARACTER SET latin1 COLLATE latin1_bin */ |
|
+----------+-----------------------------------------------------------------------------------+
|
1 row in set (0.001 sec)
|
Attachments
Issue Links
- relates to
-
MDEV-27743 Remove Lex::charset
- Closed
-
MDEV-27782 Wrong columns when using table level `CHARACTER SET utf8mb4 COLLATE DEFAULT`
- Closed
-
MDEV-28067 Multiple conflicting column COLLATE clauses are not rejected
- Closed
-
MDEV-28644 Unexpected error on ALTER TABLE t1 CONVERT TO CHARACTER SET utf8mb3, DEFAULT CHARACTER SET utf8mb4
- Closed
-
MDEV-27906 CREATE TABLE/DATABASE .. CHARSET .. COLLATE is not consistent on errors
- Closed