summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-04-19 05:21:36 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-19 05:21:36 +0400
commit7ba0cfc8ae6d8d587cbcff04f2022064151991cc (patch)
treef015e729e7c029559899721af28a89781dd1df4e /sql/handler.h
parentf89a5c9a25701c4721a64e4ea6381dd35e02d602 (diff)
parente2b03cd3b54f39e09bf20eef77effe1b53813f29 (diff)
downloadmariadb-git-7ba0cfc8ae6d8d587cbcff04f2022064151991cc.tar.gz
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/sql/handler.h b/sql/handler.h
index e6615695ce7..f283a17fb12 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1483,13 +1483,15 @@ struct THD_TRANS
unsigned int m_unsafe_rollback_flags;
/*
- Define the type of statemens which cannot be rolled back safely.
+ Define the type of statements which cannot be rolled back safely.
Each type occupies one bit in m_unsafe_rollback_flags.
*/
- static unsigned int const MODIFIED_NON_TRANS_TABLE= 0x01;
- static unsigned int const CREATED_TEMP_TABLE= 0x02;
- static unsigned int const DROPPED_TEMP_TABLE= 0x04;
- static unsigned int const DID_WAIT= 0x08;
+ enum unsafe_statement_types
+ {
+ CREATED_TEMP_TABLE= 2,
+ DROPPED_TEMP_TABLE= 4,
+ DID_WAIT= 8
+ };
void mark_created_temp_table()
{
@@ -2890,7 +2892,7 @@ public:
*/
int ha_external_lock(THD *thd, int lock_type);
int ha_write_row(uchar * buf);
- int ha_update_row(const uchar * old_data, uchar * new_data);
+ int ha_update_row(const uchar * old_data, const uchar * new_data);
int ha_delete_row(const uchar * buf);
void ha_release_auto_increment();
@@ -2929,7 +2931,7 @@ public:
int ret= end_bulk_insert();
DBUG_RETURN(ret);
}
- int ha_bulk_update_row(const uchar *old_data, uchar *new_data,
+ int ha_bulk_update_row(const uchar *old_data, const uchar *new_data,
uint *dup_key_found);
int ha_delete_all_rows();
int ha_truncate();
@@ -4047,7 +4049,7 @@ private:
message will contain garbage.
*/
virtual int update_row(const uchar *old_data __attribute__((unused)),
- uchar *new_data __attribute__((unused)))
+ const uchar *new_data __attribute__((unused)))
{
return HA_ERR_WRONG_COMMAND;
}
@@ -4135,7 +4137,7 @@ public:
@retval 0 Bulk delete used by handler
@retval 1 Bulk delete not used, normal operation used
*/
- virtual int bulk_update_row(const uchar *old_data, uchar *new_data,
+ virtual int bulk_update_row(const uchar *old_data, const uchar *new_data,
uint *dup_key_found)
{
DBUG_ASSERT(FALSE);