mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV-10775 System table in InnoDB format allowed in MariaDB could lead to crash
when opening a system table for a SELECT-like read, pretend (for the sake of engines) it's SQLCOM_SELECT
This commit is contained in:
parent
e56a53920b
commit
677c44f0c3
3 changed files with 21 additions and 0 deletions
12
mysql-test/suite/innodb/t/system_tables.test
Normal file
12
mysql-test/suite/innodb/t/system_tables.test
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--source include/have_innodb.inc
|
||||
|
||||
#
|
||||
# MDEV-10775 System table in InnoDB format allowed in MariaDB could lead to crash
|
||||
#
|
||||
alter table mysql.time_zone_name engine=InnoDB;
|
||||
create table envois3 (starttime datetime) engine=InnoDB;
|
||||
insert envois3 values ('2008-08-11 22:43:00');
|
||||
--source include/restart_mysqld.inc
|
||||
select convert_tz(starttime,'UTC','Europe/Moscow') starttime from envois3;
|
||||
drop table envois3;
|
||||
alter table mysql.time_zone_name engine=MyISAM;
|
||||
Loading…
Add table
Add a link
Reference in a new issue