summaryrefslogtreecommitdiff
path: root/storage/connect/ha_connect.h
diff options
context:
space:
mode:
authorEugene Kosov <claprix@yandex.ru>2019-07-04 21:31:35 +0300
committerEugene Kosov <claprix@yandex.ru>2019-07-05 13:14:19 +0300
commitc9aa495fb67ab4fd5c9790d4f61b7e988423619f (patch)
tree9f6aa0423075e0450ce433983c163d06023b638d /storage/connect/ha_connect.h
parent23c12ed5cb2a86516f4d4502779d2be312fa6e17 (diff)
downloadmariadb-git-c9aa495fb67ab4fd5c9790d4f61b7e988423619f.tar.gz
MDEV-19955 make argument of handler::ha_write_row() const
MDEV-19486 and one more similar bug appeared because handler::write_row() interface welcomes to modify buffer by storage engine. But callers are not ready for that thus bugs are possible in future. handler::write_row(): handler::ha_write_row(): make argument const
Diffstat (limited to 'storage/connect/ha_connect.h')
-rw-r--r--storage/connect/ha_connect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/connect/ha_connect.h b/storage/connect/ha_connect.h
index 5a1dcb1a88f..53e666d534d 100644
--- a/storage/connect/ha_connect.h
+++ b/storage/connect/ha_connect.h
@@ -388,7 +388,7 @@ virtual int check(THD* thd, HA_CHECK_OPT* check_opt);
We implement this in ha_connect.cc. It's not an obligatory method;
skip it and and MySQL will treat it as not implemented.
*/
- int write_row(uchar *buf);
+ int write_row(const uchar *buf);
/** @brief
We implement this in ha_connect.cc. It's not an obligatory method;