From c9ed9fe1c35f86f5d6c75e5b8095f3c0a3b5c5ed Mon Sep 17 00:00:00 2001 From: tj0 Date: Wed, 22 Sep 2021 11:17:02 +0800 Subject: [PATCH] Fix BAD_OVERRIDE --- src/sql/engine/dml/ob_table_replace.cpp | 2 +- src/sql/engine/dml/ob_table_replace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sql/engine/dml/ob_table_replace.cpp b/src/sql/engine/dml/ob_table_replace.cpp index 8d65b83066..37753e16a6 100644 --- a/src/sql/engine/dml/ob_table_replace.cpp +++ b/src/sql/engine/dml/ob_table_replace.cpp @@ -217,7 +217,7 @@ int ObTableReplace::inner_close(ObExecContext& ctx) const return ObTableModify::inner_close(ctx); } -int64_t ObTableReplace::to_string_kv(char* buf, int64_t buf_len) const +int64_t ObTableReplace::to_string_kv(char* buf, const int64_t buf_len) const { int64_t pos = 0; J_KV(N_TID, table_id_, N_CID, column_ids_, N_PRIMARY_CID, primary_key_ids_, N_HAS_INDEX, only_one_unique_key_); diff --git a/src/sql/engine/dml/ob_table_replace.h b/src/sql/engine/dml/ob_table_replace.h index f0b84f36ff..2228317b1e 100644 --- a/src/sql/engine/dml/ob_table_replace.h +++ b/src/sql/engine/dml/ob_table_replace.h @@ -102,7 +102,7 @@ public: * Every op should implement this method. */ virtual int inner_close(ObExecContext& ctx) const; - virtual int64_t to_string_kv(char* buf, int64_t buf_len) const; + virtual int64_t to_string_kv(char* buf, const int64_t buf_len) const; virtual int add_filter(ObSqlExpression* expr); virtual int get_next_row(ObExecContext& ctx, const common::ObNewRow*& row) const; virtual int init_op_ctx(ObExecContext& ctx) const; -- GitLab