fix:test_json_base
This commit is contained in:
6
deps/oblib/src/lib/json_type/ob_json_tree.h
vendored
6
deps/oblib/src/lib/json_type/ob_json_tree.h
vendored
@ -707,7 +707,11 @@ public:
|
||||
}
|
||||
OB_INLINE ObJsonNodeType json_type() const override { return ObJsonNodeType::J_BOOLEAN; }
|
||||
OB_INLINE void set_value(bool value) { value_ = value; }
|
||||
OB_INLINE bool value() const { return value_; }
|
||||
OB_INLINE bool value() const
|
||||
{
|
||||
bool bool_ret = (value_ != 0);
|
||||
return bool_ret;
|
||||
}
|
||||
OB_INLINE uint64_t get_serialize_size() { return sizeof(char); }
|
||||
ObJsonNode *clone(ObIAllocator* allocator) const;
|
||||
private:
|
||||
|
@ -1997,7 +1997,7 @@ TEST_F(TestJsonBase, test_seek_filter)
|
||||
hit.reset();
|
||||
ASSERT_EQ(OB_SUCCESS, j_tree->seek(j_path0, j_path0.path_node_cnt(), true, false, hit));
|
||||
ASSERT_EQ(hit.size(), 1);
|
||||
ASSERT_EQ(true, hit[0]->get_boolean());
|
||||
ASSERT_NE(false, hit[0]->get_boolean());
|
||||
// bin
|
||||
ASSERT_EQ(OB_SUCCESS, ObJsonBaseFactory::transform(&allocator, j_tree,
|
||||
ObJsonInType::JSON_BIN, j_bin));
|
||||
|
Reference in New Issue
Block a user