Bug #73326 Behavior when using a non-permitted index type.
| Submitted: | 18 Jul 2014 11:31 | Modified: | 18 Jul 2014 11:57 |
|---|---|---|---|
| Reporter: | Roland Bouman | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: DDL | Severity: | S2 (Serious) |
| Version: | all, 5.6.20 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[18 Jul 2014 11:31]
Roland Bouman
[18 Jul 2014 11:57]
MySQL Verification Team
Hello Roland, Thank you for the report and test case. Verified as described. Thanks, Umesh
[18 Jul 2014 11:58]
MySQL Verification Team
// 5.6.20
mysql> CREATE TABLE `sessions` (
-> `id` char(40) COLLATE utf8_unicode_ci NOT NULL,
-> `payload` text COLLATE utf8_unicode_ci NOT NULL,
-> `last_activity` int(11) unsigned NOT NULL,
-> PRIMARY KEY (`id`),
-> UNIQUE KEY `session_id_unique` (`id`) USING HASH
-> ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Query OK, 0 rows affected (0.34 sec)
mysql> show create table `sessions`\G
*************************** 1. row ***************************
Table: sessions
Create Table: CREATE TABLE `sessions` (
`id` char(40) COLLATE utf8_unicode_ci NOT NULL,
`payload` text COLLATE utf8_unicode_ci NOT NULL,
`last_activity` int(11) unsigned NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `session_id_unique` (`id`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
1 row in set (0.00 sec)
mysql>
mysql> show variables like '%version%';
+-------------------------+---------------------------------------------------------+
| Variable_name | Value |
+-------------------------+---------------------------------------------------------+
| innodb_version | 5.6.20 |
| protocol_version | 10 |
| slave_type_conversions | |
| version | 5.6.20-enterprise-commercial-advanced-log |
| version_comment | MySQL Enterprise Server - Advanced Edition (Commercial) |
| version_compile_machine | x86_64 |
| version_compile_os | Linux |
+-------------------------+---------------------------------------------------------+
7 rows in set (0.00 sec)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.