From 9432dd835e46e6381cfbebfdf46b233d5920b8e3 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 3 Oct 2022 20:33:22 +0000 Subject: [PATCH] BUGFIX: update the same value, row affect is not zero. reserved_random assignment in JsonBinHeader. --- deps/oblib/src/lib/json_type/ob_json_bin.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deps/oblib/src/lib/json_type/ob_json_bin.h b/deps/oblib/src/lib/json_type/ob_json_bin.h index a8b480e8b..5e232d1f4 100644 --- a/deps/oblib/src/lib/json_type/ob_json_bin.h +++ b/deps/oblib/src/lib/json_type/ob_json_bin.h @@ -70,6 +70,15 @@ typedef struct ObJsonBinKeyDict { } ObJsonBinKeyDict; typedef struct ObJsonBinHeader { + ObJsonBinHeader() + : type_(0), + entry_size_(0), + count_size_(0), + obj_size_size_(0), + is_continuous_(0), + reserved_(0) + { + } uint8_t type_; // node type for current node uint8_t entry_size_ : 2; // the size describe var size of key_entry, val_entry uint8_t count_size_ : 2; // the size describe var size of element count -- GitLab