Fix some bugs

This commit is contained in:
liboyang0730
2023-05-25 02:11:29 +00:00
committed by ob-robot
parent 1679608484
commit 57e42e3359
9 changed files with 36 additions and 19 deletions

View File

@ -4499,7 +4499,7 @@ int ObResolverUtils::resolve_generated_column_expr(ObResolverParams &params,
*
ERROR at line 1:
ORA-12899: value too large for column "Z0_TEST2" (actual: 4000, maximum: 200) */
if (expr_length_in_byte < 0 && ObLongTextType == expr->get_result_type().get_type()) {
if (ObLongTextType == expr->get_result_type().get_type()) {
expr_length_in_byte = OB_MAX_ORACLE_CHAR_LENGTH_BYTE * 2;
}
}