diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-02 11:04:54 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-02 11:04:54 +0300 |
commit | 5c3ff5cb93f8363820d506cdad3daafbc944f03b (patch) | |
tree | f5671e95dabd8ced0c7925e54b351bd704e41bcf /sql/ha_partition.h | |
parent | f9ab7b473a935141f85d27994d0faf3433a73144 (diff) | |
parent | 7b42d892de6acc04490f5cb6b8355c72b8f1a406 (diff) | |
download | mariadb-git-5c3ff5cb93f8363820d506cdad3daafbc944f03b.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index f385ceb6d3b..5913b3d2aa8 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -412,6 +412,22 @@ public: virtual void return_record_by_parent(); + virtual bool vers_can_native(THD *thd) + { + if (thd->lex->part_info) + { + // PARTITION BY SYSTEM_TIME is not supported for now + return thd->lex->part_info->part_type != VERSIONING_PARTITION; + } + else + { + bool can= true; + for (uint i= 0; i < m_tot_parts && can; i++) + can= can && m_file[i]->vers_can_native(thd); + return can; + } + } + /* ------------------------------------------------------------------------- MODULE create/delete handler object |