File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
headless/server/src/main/java/com/tencent/supersonic/headless/server/utils Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -135,13 +135,10 @@ private boolean isNumberType(String type) {
135135 if (StringUtils .isBlank (type )) {
136136 return false ;
137137 }
138- return type .equalsIgnoreCase ("int" ) || type .equalsIgnoreCase ("bigint" )
139- || type .equalsIgnoreCase ("tinyint" ) || type .equalsIgnoreCase ("smallint" )
140- || type .equalsIgnoreCase ("float" ) || type .equalsIgnoreCase ("double" )
141- || type .equalsIgnoreCase ("real" ) || type .equalsIgnoreCase ("numeric" )
142- || type .toLowerCase ().startsWith ("decimal" ) || type .toLowerCase ().startsWith ("uint" )
143- || type .toLowerCase ().startsWith ("int" )
144- || type .toLowerCase ().equalsIgnoreCase ("decfloat" );
138+ return type .toLowerCase ().endsWith ("int" ) || type .equalsIgnoreCase ("float" )
139+ || type .equalsIgnoreCase ("double" ) || type .equalsIgnoreCase ("real" )
140+ || type .equalsIgnoreCase ("numeric" ) || type .toLowerCase ().startsWith ("decimal" )
141+ || type .equalsIgnoreCase ("decfloat" );
145142 }
146143
147144 private String getName (String nameEn ) {
You can’t perform that action at this time.
0 commit comments