mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fix an old bug where dd_frm_type() could incorrectly determine the table type
for dynamic engines (because it only looked at the one-byte code, not at the full engine name).
This commit is contained in:
12
mysql-test/r/drop_bad_db_type.result
Normal file
12
mysql-test/r/drop_bad_db_type.result
Normal file
@ -0,0 +1,12 @@
|
||||
set debug_dbug='+d,unstable_db_type';
|
||||
install soname 'ha_archive';
|
||||
create table t1 (a int) engine=archive;
|
||||
insert t1 values (1),(2),(3);
|
||||
flush tables;
|
||||
uninstall soname 'ha_archive';
|
||||
install soname 'ha_archive';
|
||||
t1.ARZ
|
||||
t1.frm
|
||||
drop table t1;
|
||||
uninstall soname 'ha_archive';
|
||||
set debug_dbug='-d,unstable_db_type';
|
25
mysql-test/t/drop_bad_db_type.test
Normal file
25
mysql-test/t/drop_bad_db_type.test
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
--source include/have_debug.inc
|
||||
|
||||
if (!$HA_ARCHIVE_SO) {
|
||||
skip Needs Archive plugin;
|
||||
}
|
||||
|
||||
let $mysqld_datadir= `select @@datadir`;
|
||||
|
||||
set debug_dbug='+d,unstable_db_type';
|
||||
|
||||
install soname 'ha_archive';
|
||||
create table t1 (a int) engine=archive;
|
||||
insert t1 values (1),(2),(3);
|
||||
flush tables;
|
||||
uninstall soname 'ha_archive';
|
||||
|
||||
install soname 'ha_archive';
|
||||
--list_files $mysqld_datadir/test
|
||||
drop table t1;
|
||||
--list_files $mysqld_datadir/test
|
||||
uninstall soname 'ha_archive';
|
||||
|
||||
set debug_dbug='-d,unstable_db_type';
|
||||
|
@ -6,6 +6,8 @@
|
||||
drop table if exists t1,t2;
|
||||
--enable_warnings
|
||||
|
||||
let $mysqld_datadir= `select @@datadir`;
|
||||
|
||||
set names latin1;
|
||||
|
||||
select 'hello',"'hello'",'""hello""','''h''e''l''l''o''',"hel""lo",'hel\'lo';
|
||||
@ -1385,6 +1387,8 @@ LOAD DATA INFILE 'bug58165.txt' INTO TABLE t1;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--remove_file $mysqld_datadir/test/bug58165.txt
|
||||
|
||||
#
|
||||
# MDEV-759 lp:998340 - Valgrind complains on simple selects containing expression DAY(FROM_UNIXTIME(-1))
|
||||
#
|
||||
|
Reference in New Issue
Block a user