[CP][BUGFIX] add fix zero lob val

This commit is contained in:
obdev
2024-02-09 23:42:38 +00:00
committed by ob-robot
parent 792e0561fa
commit a5e25ac91e
5 changed files with 30 additions and 12 deletions

View File

@ -251,6 +251,17 @@ private:
DISALLOW_COPY_AND_ASSIGN(ObJsonExprHelper);
};
struct ObJsonZeroVal
{
static const int32_t OB_JSON_ZERO_VAL_LENGTH = sizeof(ObLobCommon) + 2;
ObJsonZeroVal() : header_(), json_bin_() {
json_bin_[0] = '\0';
json_bin_[1] = '\0';
}
ObLobCommon header_;
char json_bin_[4];
};
} // sql
} // oceanbase
#endif // OCEANBASE_SQL_OB_EXPR_JSON_FUNC_HELPER_H_