mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-27393 Timezone tables cannot have descending indexes
replace the assert with an if(). asserts should not be used on the input (even without DESC indexes the table could've been corrupted)
This commit is contained in:
@ -59,3 +59,18 @@ select unix_timestamp('1969-12-31 23:59:59'), unix_timestamp('1970-01-01 00:00:0
|
||||
--echo #
|
||||
--echo # End of 4.1 tests
|
||||
--echo #
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-27393 Timezone tables cannot have descending indexes
|
||||
--echo #
|
||||
call mtr.add_suppression('mysql.time_zone_transition_type table is incorrectly defined or corrupted');
|
||||
alter table mysql.time_zone_transition_type drop primary key;
|
||||
alter table mysql.time_zone_transition_type add primary key (time_zone_id,transition_type_id desc);
|
||||
--error ER_UNKNOWN_TIME_ZONE
|
||||
SET @@time_zone='Japan';
|
||||
alter table mysql.time_zone_transition_type drop primary key;
|
||||
alter table mysql.time_zone_transition_type add primary key (time_zone_id,transition_type_id);
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.8 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user