]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-23279 fixed an issue where the mapping for the jdbc column type was missing...
authorlukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com>
Fri, 4 Oct 2024 07:39:45 +0000 (09:39 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 4 Oct 2024 20:03:46 +0000 (20:03 +0000)
server/sonar-db-core/src/testFixtures/java/org/sonar/db/AbstractDbTester.java

index bb664813519983a3f3bf4cfbcc39d951d8f0940b..e728f3ca7ff18f0e2cb3040290a5220e904131b1 100644 (file)
@@ -63,6 +63,7 @@ import static com.google.common.collect.Lists.asList;
 import static java.sql.Types.BIGINT;
 import static java.sql.Types.BIT;
 import static java.sql.Types.BOOLEAN;
+import static java.sql.Types.DOUBLE;
 import static java.sql.Types.INTEGER;
 import static java.sql.Types.NUMERIC;
 import static java.sql.Types.NVARCHAR;
@@ -83,7 +84,8 @@ public class AbstractDbTester<T extends TestDb> extends ExternalResource {
   private static final Map<Integer, Integer> ORACLE_TYPE_SUBSTITUTION = Map.of(
     BOOLEAN, NUMERIC,
     BIGINT, NUMERIC,
-    INTEGER, NUMERIC);
+    INTEGER, NUMERIC,
+    DOUBLE, NUMERIC);
 
   protected final T db;