fix issue/42559381,query result incorrect bug

This commit is contained in:
obdev
2022-07-05 16:15:47 +08:00
committed by wangzelin.wzl
parent b056d5d732
commit 031989c299
2 changed files with 3 additions and 8 deletions

View File

@ -60,7 +60,7 @@ private:
DistinctObjMeta(ObObjType obj_type, ObCollationType coll_type, ObCollationLevel coll_level)
: obj_type_(obj_type), coll_type_(coll_type), coll_level_(coll_level)
{
if (!ObDatumFuncs::is_string_type(obj_type_) || !ObDatumFuncs::is_json(obj_type_)) {
if (!ObDatumFuncs::is_string_type(obj_type_) && !ObDatumFuncs::is_json(obj_type_)) {
coll_type_ = CS_TYPE_MAX;
coll_level_ = CS_LEVEL_INVALID;
}