Skip to content

Commit 28bed45

Browse files
committed
debug: don't hide row_start/row_end columns for testing
1 parent 5d3bae2 commit 28bed45

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

mysql-test/suite/versioning/r/debug.result

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,20 @@ tt3 CREATE TEMPORARY TABLE `tt3` (
3535
) ENGINE=MyISAM DEFAULT CHARSET=latin1
3636
disconnect con1;
3737
connection default;
38+
set debug_dbug='+d,sysvers_show';
39+
show create table t3;
40+
Table Create Table
41+
t3 CREATE TABLE `t3` (
42+
`a` int(11) DEFAULT NULL
43+
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
44+
create table t4 (a int);
45+
show create table t4;
46+
Table Create Table
47+
t4 CREATE TABLE `t4` (
48+
`a` int(11) DEFAULT NULL,
49+
`row_start` timestamp(6) GENERATED ALWAYS AS ROW START,
50+
`row_end` timestamp(6) GENERATED ALWAYS AS ROW END,
51+
PERIOD FOR SYSTEM_TIME (`row_start`, `row_end`)
52+
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
3853
set global debug_dbug=@old_dbug;
39-
drop table t1, t2, t3;
54+
drop table t1, t2, t3, t4;

mysql-test/suite/versioning/t/debug.test

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,11 @@ show create table tt3;
2525
--disconnect con1
2626
--connection default
2727

28+
set debug_dbug='+d,sysvers_show';
29+
30+
show create table t3;
31+
create table t4 (a int);
32+
show create table t4;
33+
2834
set global debug_dbug=@old_dbug;
29-
drop table t1, t2, t3;
35+
drop table t1, t2, t3, t4;

sql/handler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6874,7 +6874,7 @@ static Create_field *vers_init_sys_field(THD *thd, const char *field_name, int f
68746874
f->set_handler(&type_handler_timestamp2);
68756875
f->length= MAX_DATETIME_PRECISION;
68766876
}
6877-
f->invisible= INVISIBLE_SYSTEM;
6877+
f->invisible= DBUG_EVALUATE_IF("sysvers_show", VISIBLE, INVISIBLE_SYSTEM);
68786878

68796879
if (f->check(thd))
68806880
return NULL;

0 commit comments

Comments
 (0)