From f264b3160f8f1d79eac29adcd824cb9ef76d55aa Mon Sep 17 00:00:00 2001 From: czeeland <43428442+czeeland@users.noreply.github.com> Date: Wed, 8 Jan 2025 20:45:39 +0800 Subject: [PATCH] =?UTF-8?q?[improvement]QueryUtils.isNumberType=20method?= =?UTF-8?q?=20add=20type=20real=E3=80=81tinyint=E3=80=81smallint=20for=20d?= =?UTF-8?q?atabase=20fields=20(#2001)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tencent/supersonic/headless/server/utils/QueryUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headless/server/src/main/java/com/tencent/supersonic/headless/server/utils/QueryUtils.java b/headless/server/src/main/java/com/tencent/supersonic/headless/server/utils/QueryUtils.java index d7b5f2d15..9129b4001 100644 --- a/headless/server/src/main/java/com/tencent/supersonic/headless/server/utils/QueryUtils.java +++ b/headless/server/src/main/java/com/tencent/supersonic/headless/server/utils/QueryUtils.java @@ -120,7 +120,8 @@ public class QueryUtils { return false; } return type.equalsIgnoreCase("int") || type.equalsIgnoreCase("bigint") - || type.equalsIgnoreCase("float") || type.equalsIgnoreCase("double") + || 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"); }