fix:48260610

This commit is contained in:
obdev
2023-03-10 03:17:16 +00:00
committed by ob-robot
parent 0df00274f4
commit c1d0f92279
3 changed files with 6 additions and 4 deletions

View File

@ -647,7 +647,7 @@ int ObJsonExprHelper::transform_scalar_2jsonBase(const T &datum,
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("buf allocate failed", K(ret), K(type));
} else {
json_node = (ObJsonDouble *)new(buf)ObJsonDouble(datum.get_double());
json_node = (ObJsonDouble *)new(buf)ObJsonDouble(val);
}
}
break;