summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-07-11 14:50:39 +0400
committerAlexander Barkov <bar@mariadb.com>2019-07-11 21:51:18 +0400
commit1517087b546bf97ab2afe0e81af0cdfddd323e77 (patch)
tree4de8845cdec7338ffdd33a574162c0b38e267b53 /mysql-test
parentc8e94e5eda777578f07409e8a060305776b7ac55 (diff)
downloadmariadb-git-1517087b546bf97ab2afe0e81af0cdfddd323e77.tar.gz
MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/main/frm-debug.result21
-rw-r--r--mysql-test/main/frm-debug.test19
2 files changed, 40 insertions, 0 deletions
diff --git a/mysql-test/main/frm-debug.result b/mysql-test/main/frm-debug.result
new file mode 100644
index 00000000000..d4d71caacbd
--- /dev/null
+++ b/mysql-test/main/frm-debug.result
@@ -0,0 +1,21 @@
+#
+# MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM
+#
+SET SESSION debug_dbug="+d,frm_data_type_info";
+CREATE TABLE t1 (c01 INT, c02 CHAR(20), c03 TEXT, c04 DOUBLE);
+Warnings:
+Note 1105 build_frm_image: Field data type info length: 0
+DROP TABLE t1;
+SET SESSION debug_dbug="-d,frm_data_type_info";
+SET SESSION debug_dbug="+d,frm_data_type_info";
+SET SESSION debug_dbug="+d,frm_data_type_info_emulate";
+CREATE TABLE t1 (c01 INT, c02 CHAR(20), c03 TEXT, c04 DOUBLE);
+Warnings:
+Note 1105 build_frm_image: Field data type info length: 12
+Note 1105 DBUG: [0] name='c01' type_info=''
+Note 1105 DBUG: [1] name='c02' type_info='char'
+Note 1105 DBUG: [2] name='c03' type_info='blob'
+Note 1105 DBUG: [3] name='c04' type_info=''
+DROP TABLE t1;
+SET SESSION debug_dbug="-d,frm_data_type_info_emulate";
+SET SESSION debug_dbug="-d,frm_data_type_info";
diff --git a/mysql-test/main/frm-debug.test b/mysql-test/main/frm-debug.test
new file mode 100644
index 00000000000..95207354bdc
--- /dev/null
+++ b/mysql-test/main/frm-debug.test
@@ -0,0 +1,19 @@
+--source include/have_debug.inc
+
+--echo #
+--echo # MDEV-20042 Implement EXTRA2_FIELD_DATA_TYPE_INFO in FRM
+--echo #
+
+# This should have empty EXTRA2_FIELD_DATA_TYPE_INFO
+SET SESSION debug_dbug="+d,frm_data_type_info";
+CREATE TABLE t1 (c01 INT, c02 CHAR(20), c03 TEXT, c04 DOUBLE);
+DROP TABLE t1;
+SET SESSION debug_dbug="-d,frm_data_type_info";
+
+# This should have non-empty EXTRA2_FIELD_DATA_TYPE_INFO
+SET SESSION debug_dbug="+d,frm_data_type_info";
+SET SESSION debug_dbug="+d,frm_data_type_info_emulate";
+CREATE TABLE t1 (c01 INT, c02 CHAR(20), c03 TEXT, c04 DOUBLE);
+DROP TABLE t1;
+SET SESSION debug_dbug="-d,frm_data_type_info_emulate";
+SET SESSION debug_dbug="-d,frm_data_type_info";