diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2018-04-28 20:40:34 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-05-12 10:16:46 +0200 |
commit | fddaaf729521ebafd0469adf3f9e36dcc079a26f (patch) | |
tree | 58bd2db9a4fd47e83aee6925eb86ef5dbb862550 /sql | |
parent | da25860d4a7264074b2e2744e74e3d538022e674 (diff) | |
download | mariadb-git-fddaaf729521ebafd0469adf3f9e36dcc079a26f.tar.gz |
MDEV-15978 Add Feature_system_versioning status variable
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 1 | ||||
-rw-r--r-- | sql/sql_class.h | 1 | ||||
-rw-r--r-- | sql/table.cc | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 28b5d3bd0ad..dd79cb39f80 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -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}, diff --git a/sql/sql_class.h b/sql/sql_class.h index 22b8e3e18f0..bc4f37175a5 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -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 */ diff --git a/sql/table.cc b/sql/table.cc index bc61e77c972..b4da5cdadb0 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -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++) |