From c9aa495fb67ab4fd5c9790d4f61b7e988423619f Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Thu, 4 Jul 2019 21:31:35 +0300 Subject: 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 --- sql/ha_sequence.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/ha_sequence.cc') diff --git a/sql/ha_sequence.cc b/sql/ha_sequence.cc index 65bb0daf8cf..beaed6ef7df 100644 --- a/sql/ha_sequence.cc +++ b/sql/ha_sequence.cc @@ -194,7 +194,7 @@ int ha_sequence::create(const char *name, TABLE *form, the sequence with 'buf' as the sequence object is already up to date. */ -int ha_sequence::write_row(uchar *buf) +int ha_sequence::write_row(const uchar *buf) { int error; sequence_definition tmp_seq; -- cgit v1.2.1