1
0
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:
Sergei Golubchik
2013-08-28 22:16:13 +02:00
parent 68325b6a12
commit 28a9fea122
5 changed files with 102 additions and 5 deletions

View 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';

View 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';

View File

@ -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))
#