fix a bug of ignore null value in not null text/blob column in mysql dml

This commit is contained in:
xf0
2021-12-24 10:55:35 +08:00
committed by LINxiansheng
parent 888a02778c
commit 2dba06a3a3

View File

@ -8680,6 +8680,8 @@ int ObObjCaster::get_zero_value(const ObObjType expect_type, ObCollationType exp
params.warning_ = 1;
if (ob_is_string_tc(expect_type)) {
zero_obj.set_string(expect_type, "");
} else if (ob_is_text_tc(expect_type)) {
zero_obj.set_lob_value(expect_type, static_cast<const char *>(NULL), 0);
} else if (ob_is_int_tc(expect_type)) {
int64_t value = 0;
SET_RES_INT(zero_obj);