1# 2# MDEV-20016 Add MariaDB_DATA_TYPE_PLUGIN 3# 4# Testing that a user-defined handler is resolved by name 5# when opening a FRM file. 6SET @old_debug_dbug=@@debug_dbug; 7SET @@debug_dbug="+d,frm_data_type_info"; 8CREATE TABLE t1 (a TEST_INT8); 9Warnings: 10Note 1105 build_frm_image: Field data type info length: 11 11Note 1105 DBUG: [0] name='a' type_info='test_int8' 12SHOW CREATE TABLE t1; 13Table Create Table 14t1 CREATE TABLE `t1` ( 15 `a` test_int8(20) DEFAULT NULL 16) ENGINE=MyISAM DEFAULT CHARSET=latin1 17Warnings: 18Note 1105 DBUG: [0] name='a' type_info='test_int8' 19DROP TABLE t1; 20SET @@debug_dbug=@old_debug_dbug; 21# Testing what happens on failure to resolve a type handler by name 22SET @old_debug_dbug=@@debug_dbug; 23SET @@debug_dbug="+d,frm_data_type_info"; 24CREATE TABLE t1 (a TEST_INT8); 25Warnings: 26Note 1105 build_frm_image: Field data type info length: 11 27Note 1105 DBUG: [0] name='a' type_info='test_int8' 28FLUSH TABLES; 29SET @@debug_dbug="+d,emulate_handler_by_name_or_error_failure"; 30SHOW CREATE TABLE t1; 31ERROR HY000: Unknown data type: 'test_int8' 32SELECT * FROM t1; 33ERROR HY000: Unknown data type: 'test_int8' 34DROP TABLE t1; 35SET @@debug_dbug=@old_debug_dbug; 36