Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
28bed454
Commit
28bed454
authored
Jan 11, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug: don't hide row_start/row_end columns for testing
parent
5d3bae24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
mysql-test/suite/versioning/r/debug.result
mysql-test/suite/versioning/r/debug.result
+16
-1
mysql-test/suite/versioning/t/debug.test
mysql-test/suite/versioning/t/debug.test
+7
-1
sql/handler.cc
sql/handler.cc
+1
-1
No files found.
mysql-test/suite/versioning/r/debug.result
View file @
28bed454
...
...
@@ -35,5 +35,20 @@ tt3 CREATE TEMPORARY TABLE `tt3` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
disconnect con1;
connection default;
set debug_dbug='+d,sysvers_show';
show create table t3;
Table Create Table
t3 CREATE TABLE `t3` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
create table t4 (a int);
show create table t4;
Table Create Table
t4 CREATE TABLE `t4` (
`a` int(11) DEFAULT NULL,
`row_start` timestamp(6) GENERATED ALWAYS AS ROW START,
`row_end` timestamp(6) GENERATED ALWAYS AS ROW END,
PERIOD FOR SYSTEM_TIME (`row_start`, `row_end`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
set global debug_dbug=@old_dbug;
drop table t1, t2, t3;
drop table t1, t2, t3
, t4
;
mysql-test/suite/versioning/t/debug.test
View file @
28bed454
...
...
@@ -25,5 +25,11 @@ show create table tt3;
--
disconnect
con1
--
connection
default
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
;
drop
table
t1
,
t2
,
t3
,
t4
;
sql/handler.cc
View file @
28bed454
...
...
@@ -6874,7 +6874,7 @@ static Create_field *vers_init_sys_field(THD *thd, const char *field_name, int f
f
->
set_handler
(
&
type_handler_timestamp2
);
f
->
length
=
MAX_DATETIME_PRECISION
;
}
f
->
invisible
=
INVISIBLE_SYSTEM
;
f
->
invisible
=
DBUG_EVALUATE_IF
(
"sysvers_show"
,
VISIBLE
,
INVISIBLE_SYSTEM
)
;
if
(
f
->
check
(
thd
))
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment