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
610ec192
Commit
610ec192
authored
Mar 22, 2019
by
Nikita Malyavin
Committed by
Sergei Golubchik
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17320 add Feature_application_time_periods status variable
Closes #1225
parent
5fc6ad95
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/main/features.result
mysql-test/main/features.result
+1
-0
mysql-test/suite/period/r/create.result
mysql-test/suite/period/r/create.result
+3
-0
mysql-test/suite/period/t/create.test
mysql-test/suite/period/t/create.test
+2
-0
sql/mysqld.cc
sql/mysqld.cc
+1
-0
sql/sql_class.h
sql/sql_class.h
+2
-0
sql/table.cc
sql/table.cc
+1
-0
No files found.
mysql-test/main/features.result
View file @
610ec192
...
...
@@ -3,6 +3,7 @@ set sql_mode="";
flush status;
show status like "feature%";
Variable_name Value
Feature_application_time_periods 0
Feature_check_constraint 0
Feature_custom_aggregate_functions 0
Feature_delay_key_write 0
...
...
mysql-test/suite/period/r/create.result
View file @
610ec192
...
...
@@ -93,4 +93,7 @@ t CREATE TABLE `t` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
insert t values (2, '2001-01-01', '2001-01-01');
ERROR 23000: CONSTRAINT `mytime_1` failed for `test`.`t`
show status like "Feature_application_time_periods";
Variable_name Value
Feature_application_time_periods 6
create or replace database test;
mysql-test/suite/period/t/create.test
View file @
610ec192
...
...
@@ -77,4 +77,6 @@ show create table t;
--
error
ER_CONSTRAINT_FAILED
insert
t
values
(
2
,
'2001-01-01'
,
'2001-01-01'
);
show
status
like
"Feature_application_time_periods"
;
create
or
replace
database
test
;
sql/mysqld.cc
View file @
610ec192
...
...
@@ -7666,6 +7666,7 @@ SHOW_VAR status_vars[]= {
{
"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_application_time_periods"
,
(
char
*
)
offsetof
(
STATUS_VAR
,
feature_application_time_periods
),
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 @
610ec192
...
...
@@ -862,6 +862,8 @@ typedef struct system_status_var
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_application_time_periods
;
/* +1 opening a table with application-time period */
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 @
610ec192
...
...
@@ -2108,6 +2108,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
if
(
init_period_from_extra2
(
&
period
,
pos
,
end
))
goto
err
;
status_var_increment
(
thd
->
status_var
.
feature_application_time_periods
);
}
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