[fix](prepare) fix datetimev2 return err when binary_row_format (#34662)

fix datetimev2 return err when binary_row_format. before pr, Backend return datetimev2 alwary by to_string.
fix datatimev2 return metadata loss scale.
This commit is contained in:
xueweizhang
2024-05-17 14:19:04 +08:00
committed by yiguolei
parent 437c1a1ba4
commit 9b5028785d
7 changed files with 71 additions and 46 deletions

View File

@ -298,6 +298,8 @@ public class MysqlSerializer {
case DECIMAL64:
case DECIMAL128:
case DECIMAL256:
case TIMEV2:
case DATETIMEV2:
return ((ScalarType) type).decimalScale();
case FLOAT:
case DOUBLE: