Ctas statement contains USER VARIABLE creation failed

This commit is contained in:
lf0
2021-12-27 15:51:46 +08:00
committed by LINxiansheng
parent 97eefd4e2e
commit a10b882d0e

View File

@ -112,7 +112,7 @@ int ObExprAssign::calc_result_type2(
type.set_scale(value.get_scale()); type.set_scale(value.get_scale());
// set length // set length
if (ob_is_string_type(type.get_type())) { if (ob_is_string_type(type.get_type())) {
type.set_full_length(common::MAX_BUFFER_SIZE, value.get_length_semantics()); type.set_full_length(value.get_length(), value.get_length_semantics());
} }
const ObSQLSessionInfo* session = dynamic_cast<const ObSQLSessionInfo*>(type_ctx.get_session()); const ObSQLSessionInfo* session = dynamic_cast<const ObSQLSessionInfo*>(type_ctx.get_session());