Skip to content

Commit 9432dd8

Browse files
obdevwangzelin19961202
authored andcommitted
BUGFIX: update the same value, row affect is not zero. reserved_random assignment in JsonBinHeader.
1 parent 36f843f commit 9432dd8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

deps/oblib/src/lib/json_type/ob_json_bin.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ typedef struct ObJsonBinKeyDict {
7070
} ObJsonBinKeyDict;
7171

7272
typedef struct ObJsonBinHeader {
73+
ObJsonBinHeader()
74+
: type_(0),
75+
entry_size_(0),
76+
count_size_(0),
77+
obj_size_size_(0),
78+
is_continuous_(0),
79+
reserved_(0)
80+
{
81+
}
7382
uint8_t type_; // node type for current node
7483
uint8_t entry_size_ : 2; // the size describe var size of key_entry, val_entry
7584
uint8_t count_size_ : 2; // the size describe var size of element count

0 commit comments

Comments
 (0)