[fix][heaadless]Optimize logic of determine number types.
Some checks are pending
supersonic CentOS CI / build (21) (push) Waiting to run
supersonic mac CI / build (21) (push) Waiting to run
supersonic ubuntu CI / build (21) (push) Waiting to run
supersonic windows CI / build (21) (push) Waiting to run

This commit is contained in:
jerryjzhang
2025-04-10 00:25:56 +08:00
parent d2aa73b85e
commit 0ab7643299

View File

@@ -135,13 +135,10 @@ public class QueryUtils {
if (StringUtils.isBlank(type)) {
return false;
}
return type.equalsIgnoreCase("int") || type.equalsIgnoreCase("bigint")
|| type.equalsIgnoreCase("tinyint") || type.equalsIgnoreCase("smallint")
|| type.equalsIgnoreCase("float") || type.equalsIgnoreCase("double")
|| type.equalsIgnoreCase("real") || type.equalsIgnoreCase("numeric")
|| type.toLowerCase().startsWith("decimal") || type.toLowerCase().startsWith("uint")
|| type.toLowerCase().startsWith("int")
|| type.toLowerCase().equalsIgnoreCase("decfloat");
return type.toLowerCase().endsWith("int") || type.equalsIgnoreCase("float")
|| type.equalsIgnoreCase("double") || type.equalsIgnoreCase("real")
|| type.equalsIgnoreCase("numeric") || type.toLowerCase().startsWith("decimal")
|| type.equalsIgnoreCase("decfloat");
}
private String getName(String nameEn) {