From abd9550630b5e8a142636aea90c29ba2aa37e874 Mon Sep 17 00:00:00 2001 From: delchev Date: Wed, 3 Apr 2024 14:17:48 +0300 Subject: [PATCH] NUMBER data type support for Snowflake --- .../org/eclipse/dirigible/database/sql/DataTypeUtils.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/database/database-sql/src/main/java/org/eclipse/dirigible/database/sql/DataTypeUtils.java b/modules/database/database-sql/src/main/java/org/eclipse/dirigible/database/sql/DataTypeUtils.java index fde59f6a2d5..3d6ee7102e6 100644 --- a/modules/database/database-sql/src/main/java/org/eclipse/dirigible/database/sql/DataTypeUtils.java +++ b/modules/database/database-sql/src/main/java/org/eclipse/dirigible/database/sql/DataTypeUtils.java @@ -67,6 +67,9 @@ public class DataTypeUtils { /** The Constant NUMERIC. */ private static final String NUMERIC = "NUMERIC"; + + /** The Constant NUMBER. */ + private static final String NUMBER = "NUMBER"; /** The Constant FLOAT8. */ private static final String FLOAT8 = "FLOAT8"; @@ -220,6 +223,7 @@ public class DataTypeUtils { STRING_TO_DATABASE_TYPE.put(FLOAT8, Types.DOUBLE); STRING_TO_DATABASE_TYPE.put(NUMERIC, Types.NUMERIC); STRING_TO_DATABASE_TYPE.put(DECIMAL, Types.DECIMAL); + STRING_TO_DATABASE_TYPE.put(NUMBER, Types.DECIMAL); // booleans STRING_TO_DATABASE_TYPE.put(BOOLEAN, Types.BOOLEAN); STRING_TO_DATABASE_TYPE.put(BOOL, Types.BOOLEAN);