[FEAT MERGE]:Oracle Json Supported

This commit is contained in:
obdev
2023-01-28 15:52:29 +08:00
committed by ob-robot
parent 274e68514d
commit bbb017266b
197 changed files with 30520 additions and 2252 deletions

View File

@ -270,7 +270,9 @@ bool ObExprCast::check_cast_allowed(const ObObjType orig_type,
if (is_oracle_mode() && is_explicit_cast) {
// can't cast lob to other type except char/varchar/nchar/nvarchar2/raw. clob to raw not allowed too.
if (ObLobTC == ori_tc || ObTextTC == ori_tc) {
if (ObStringTC == expect_tc) {
if (expect_tc == ObJsonTC) {
/* oracle mode, json text use lob store */
} else if (ObStringTC == expect_tc) {
// do nothing
} else if (ObRawTC == expect_tc) {
res = CS_TYPE_BINARY == orig_cs_type;