Fix default value of ObDecimalIntType
This commit is contained in:
@ -6611,7 +6611,7 @@ int ObDDLService::resolve_orig_default_value(ObColumnSchemaV2 &alter_column_sche
|
||||
} else {
|
||||
ObObj default_value;
|
||||
default_value.set_type(alter_column_schema.get_data_type());
|
||||
if (OB_FAIL(default_value.build_not_strict_default_value())) {
|
||||
if (OB_FAIL(default_value.build_not_strict_default_value(alter_column_schema.get_accuracy().get_precision()))) {
|
||||
LOG_WARN("failed to build not strict default value", K(ret));
|
||||
} else if (OB_FAIL(alter_column_schema.set_orig_default_value(default_value))) {
|
||||
LOG_WARN("failed to set orig default value", K(ret));
|
||||
|
||||
Reference in New Issue
Block a user