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
fddaaf72
Commit
fddaaf72
authored
Apr 28, 2018
by
Aleksey Midenkov
Committed by
Sergei Golubchik
May 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-15978 Add Feature_system_versioning status variable
parent
da25860d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
0 deletions
+9
-0
mysql-test/main/features.result
mysql-test/main/features.result
+1
-0
mysql-test/suite/versioning/r/sysvars.result
mysql-test/suite/versioning/r/sysvars.result
+3
-0
mysql-test/suite/versioning/t/sysvars.test
mysql-test/suite/versioning/t/sysvars.test
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-0
sql/sql_class.h
sql/sql_class.h
+1
-0
sql/table.cc
sql/table.cc
+1
-0
No files found.
mysql-test/main/features.result
View file @
fddaaf72
...
...
@@ -13,6 +13,7 @@ Feature_invisible_columns 0
Feature_json 0
Feature_locale 0
Feature_subquery 0
Feature_system_versioning 0
Feature_timezone 0
Feature_trigger 0
Feature_window_functions 0
...
...
mysql-test/suite/versioning/r/sysvars.result
View file @
fddaaf72
...
...
@@ -126,4 +126,7 @@ select * from t for system_time between '0-0-0' and current_timestamp(6);
a
2
1
show status like "Feature_system_versioning";
Variable_name Value
Feature_system_versioning 2
drop table t;
mysql-test/suite/versioning/t/sysvars.test
View file @
fddaaf72
...
...
@@ -84,4 +84,6 @@ select * from t for system_time all;
select
*
from
t
for
system_time
from
'0-0-0'
to
current_timestamp
(
6
);
select
*
from
t
for
system_time
between
'0-0-0'
and
current_timestamp
(
6
);
show
status
like
"Feature_system_versioning"
;
drop
table
t
;
sql/mysqld.cc
View file @
fddaaf72
...
...
@@ -8558,6 +8558,7 @@ SHOW_VAR status_vars[]= {
{
"Feature_json"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_json
),
SHOW_LONG_STATUS
},
{
"Feature_locale"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_locale
),
SHOW_LONG_STATUS
},
{
"Feature_subquery"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_subquery
),
SHOW_LONG_STATUS
},
{
"Feature_system_versioning"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_system_versioning
),
SHOW_LONG_STATUS
},
{
"Feature_timezone"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_timezone
),
SHOW_LONG_STATUS
},
{
"Feature_trigger"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_trigger
),
SHOW_LONG_STATUS
},
{
"Feature_window_functions"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_window_functions
),
SHOW_LONG_STATUS
},
...
...
sql/sql_class.h
View file @
fddaaf72
...
...
@@ -823,6 +823,7 @@ typedef struct system_status_var
ulong
feature_json
;
/* +1 when JSON function appears in the statement */
ulong
feature_locale
;
/* +1 when LOCALE is set */
ulong
feature_subquery
;
/* +1 when subqueries are used */
ulong
feature_system_versioning
;
/* +1 opening a table WITH SYSTEM VERSIONING */
ulong
feature_timezone
;
/* +1 when XPATH is used */
ulong
feature_trigger
;
/* +1 opening a table with triggers */
ulong
feature_xml
;
/* +1 when XPATH is used */
...
...
sql/table.cc
View file @
fddaaf72
...
...
@@ -1777,6 +1777,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
vers_can_native
=
plugin_hton
(
se_plugin
)
->
flags
&
HTON_NATIVE_SYS_VERSIONING
;
row_start_field
=
row_start
;
row_end_field
=
row_end
;
status_var_increment
(
thd
->
status_var
.
feature_system_versioning
);
}
// if (system_period == NULL)
for
(
i
=
0
;
i
<
share
->
fields
;
i
++
,
strpos
+=
field_pack_length
,
field_ptr
++
)
...
...
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