[FIX] oracle mode, not support index column int->float type change

This commit is contained in:
gaishun
2024-03-06 07:20:21 +00:00
committed by ob-robot
parent d9beec169d
commit 9a207cc604
2 changed files with 17 additions and 9 deletions

View File

@ -176,7 +176,10 @@ public:
&& schema_meta.get_type() != value.get_type()
&& !(lib::is_mysql_mode()
&& (common::is_match_alter_integer_column_online_ddl_rules(schema_meta, value.get_meta())
|| common::is_match_alter_integer_column_online_ddl_rules(value.get_meta(), schema_meta)))) { // small integer -> big integer; mysql mode;
|| common::is_match_alter_integer_column_online_ddl_rules(value.get_meta(), schema_meta))) // small integer -> big integer; mysql mode;
&& !(lib::is_oracle_mode()
&& ((common::ObNumberType == schema_meta.get_type() && common::ObNumberFloatType == value.get_type())
|| (common::ObNumberType == value.get_type() && common::ObNumberFloatType == schema_meta.get_type())))) { // number -> float; oracle mode;
TRANS_LOG(WARN, "data/schema type does not match",
"index", i,
"data_type", value.get_type(),