mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-19525 remove ER_VERS_FIELD_WRONG_TYPE from init_from_binary_frm_image()
Throw ER_NOT_FORM_FILE if this is wrong FRM data (warning with ER_VERS_FIELD_WRONG_TYPE is still printed for deeper knowledge of what was happened). Keep ER_VERS_FIELD_WRONG_TYPE for creating partitioned table with trx-versioning. Tested by MDEV-15951 in trx_id.test
This commit is contained in:
@ -30,6 +30,17 @@ set debug_dbug='+d,sysvers_show';
|
||||
show create table t3;
|
||||
create table t4 (a int);
|
||||
show create table t4;
|
||||
|
||||
set global debug_dbug=@old_dbug;
|
||||
drop table t1, t2, t3, t4;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-19525 remove ER_VERS_FIELD_WRONG_TYPE from init_from_binary_frm_image()
|
||||
--echo #
|
||||
create table t1 (x int) with system versioning;
|
||||
set debug_dbug='+d,error_vers_wrong_type';
|
||||
--replace_result $MYSQLTEST_VARDIR . master-data// '' '\\' '/'
|
||||
--error ER_NOT_FORM_FILE
|
||||
show create table t1;
|
||||
show warnings;
|
||||
drop table t1;
|
||||
set global debug_dbug=@old_dbug;
|
||||
|
Reference in New Issue
Block a user