diff --git a/storage/tianmu/handler/tianmu_handler.cpp b/storage/tianmu/handler/tianmu_handler.cpp index 81520df35..c68542d1f 100644 --- a/storage/tianmu/handler/tianmu_handler.cpp +++ b/storage/tianmu/handler/tianmu_handler.cpp @@ -1536,6 +1536,8 @@ void TianmuHandler::key_convert(const uchar *key, uint key_len, std::vector records; for (auto &i : cols) { Field *f = field[i]; + // stonedb8 init for union primary key + bitmap_set_bit(table->read_set, f->field_index()); size_t length; if (f->is_null()) { throw common::Exception("Priamry key part can not be NULL");