revert commit ‘Fix generated column bug’

This commit is contained in:
2149
2023-07-10 09:11:56 +00:00
committed by ob-robot
parent 2bd13e6946
commit 335db9ca4d
4 changed files with 22 additions and 116 deletions

View File

@ -894,8 +894,7 @@ int ObExprCast::is_valid_for_generated_column(const ObRawExpr*expr, const common
}
} else if (ObTimeType == src && ObTimeType != dst && ob_is_temporal_type(dst)) {
is_valid = false;
} else if ((ObTimestampType == src && ObTimestampType != dst)
|| (ObTimestampType == dst && ObTimestampType != src)) {
} else if (ObTimestampType == src && ObTimestampType != dst) {
is_valid = false;
}
}