diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2019-12-02 12:51:53 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2019-12-02 12:51:53 +0300 |
commit | 0b8b11b0b15f2d3d20dc801e50fa2beedc080dad (patch) | |
tree | 7a7b9f8ec419bff57b3b0258293d91f180908037 /sql/table.h | |
parent | 1d46923a0f6508d52d7ce679a7dd8e7e0e957ae4 (diff) | |
parent | db32d9457edbcb23b45f433cfcdfc5d86232bbb0 (diff) | |
download | mariadb-git-0b8b11b0b15f2d3d20dc801e50fa2beedc080dad.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/table.h b/sql/table.h index 6b125fe43ad..458482315c3 100644 --- a/sql/table.h +++ b/sql/table.h @@ -324,7 +324,7 @@ typedef struct st_grant_info enum tmp_table_type { - NO_TMP_TABLE, NON_TRANSACTIONAL_TMP_TABLE, TRANSACTIONAL_TMP_TABLE, + NO_TMP_TABLE= 0, NON_TRANSACTIONAL_TMP_TABLE, TRANSACTIONAL_TMP_TABLE, INTERNAL_TMP_TABLE, SYSTEM_TMP_TABLE }; enum release_type { RELEASE_NORMAL, RELEASE_WAIT_FOR_DROP }; @@ -1589,9 +1589,16 @@ public: return s->versioned == type; } - bool versioned_write(vers_sys_type_t type= VERS_UNDEFINED) const + bool versioned_write() const { DBUG_ASSERT(versioned() || !vers_write); + return versioned() ? vers_write : false; + } + + bool versioned_write(vers_sys_type_t type) const + { + DBUG_ASSERT(type); + DBUG_ASSERT(versioned() || !vers_write); return versioned(type) ? vers_write : false; } @@ -1614,6 +1621,8 @@ public: int period_make_insert(Item *src, Field *dst); int insert_portion_of_time(THD *thd, const vers_select_conds_t &period_conds, ha_rows *rows_inserted); + bool vers_check_update(List<Item> &items); + int delete_row(); void vers_update_fields(); void vers_update_end(); |