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