[fix-30060] code opt: use pattern replace contain(" ")
[fix-30060] use pattern replace contain(" ")
[fix-30060] use pattern replace contain(" ")
@@ -26,6 +26,7 @@ import java.math.BigDecimal;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.SQLException;
+import java.sql.Time;
import java.sql.Timestamp;
import java.sql.Types;
import java.util.List;
@@ -217,6 +218,8 @@ public class JDBCTypeConvertUtils {
tmpFieldsType[i] = Types.DECIMAL;
} else if (fieldType.equals(Date.class.getName())) {
tmpFieldsType[i] = Types.DATE;
+ } else if (fieldType.equals(Time.class.getName())) {
+ tmpFieldsType[i] = Types.TIME;
} else {
throw new RuntimeException("no support field type for sql. the input type:" + fieldType);
}
