From 518d339ab646c055314f02eebe5b55f3f49af958 Mon Sep 17 00:00:00 2001
From: serenaponta <42769540+serenaponta@users.noreply.github.com>
Date: Thu, 13 Jan 2022 21:40:56 +0100
Subject: [PATCH] updated h2 to major release 2.x
---
rest-backend/pom.xml | 2 +-
.../steady/backend/repo/AffectedLibraryRepository.java | 4 ++--
.../org/eclipse/steady/backend/repo/LibraryRepository.java | 2 +-
rest-backend/src/main/resources/application-docker.properties | 2 +-
.../src/main/resources/application-localhost.properties | 2 +-
rest-backend/src/main/resources/application-test.properties | 3 ++-
6 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/rest-backend/pom.xml b/rest-backend/pom.xml
index 4abeb092f..23cbb019a 100644
--- a/rest-backend/pom.xml
+++ b/rest-backend/pom.xml
@@ -265,7 +265,7 @@
com.h2database
h2
- 1.4.199
diff --git a/rest-backend/src/main/java/org/eclipse/steady/backend/repo/AffectedLibraryRepository.java b/rest-backend/src/main/java/org/eclipse/steady/backend/repo/AffectedLibraryRepository.java
index 1d32c4402..08de9725f 100644
--- a/rest-backend/src/main/java/org/eclipse/steady/backend/repo/AffectedLibraryRepository.java
+++ b/rest-backend/src/main/java/org/eclipse/steady/backend/repo/AffectedLibraryRepository.java
@@ -114,7 +114,7 @@ List findByBugAndSource(
*/
@Query(
"SELECT afflib FROM AffectedLibrary AS afflib JOIN afflib.libraryId lid, Library l "
- + "WHERE l.libraryId=lid AND l.wellknownDigest='true' AND"
+ + "WHERE l.libraryId=lid AND l.wellknownDigest=true AND"
+ " afflib.bugId = :bug AND afflib.source = :source")
List findWellKnownByBugAndSource(
@Param("bug") Bug bug, @Param("source") AffectedVersionSource source);
@@ -181,7 +181,7 @@ List findByBugAndLibIdAndSource(
*/
@Query(
"SELECT afflib FROM AffectedLibrary AS afflib JOIN afflib.libraryId lid, Library l "
- + "WHERE l.libraryId=lid AND l.wellknownDigest='true' AND"
+ + "WHERE l.libraryId=lid AND l.wellknownDigest=true AND"
+ " afflib.bugId = :bug")
List findWellKnownByBug(@Param("bug") Bug bug);
diff --git a/rest-backend/src/main/java/org/eclipse/steady/backend/repo/LibraryRepository.java b/rest-backend/src/main/java/org/eclipse/steady/backend/repo/LibraryRepository.java
index e1a78d6c6..463cd801d 100644
--- a/rest-backend/src/main/java/org/eclipse/steady/backend/repo/LibraryRepository.java
+++ b/rest-backend/src/main/java/org/eclipse/steady/backend/repo/LibraryRepository.java
@@ -326,7 +326,7 @@ List findAffCCs(
+ " l1.id=bl.library_id inner join library_id lid2 on"
+ " bl.bundled_library_ids_id=lid2.id inner join lib l2 on"
+ " bl.bundled_library_ids_id=l2.library_id_id where d.app=:app and not l1.id ="
- + " l2.id and l2.wellknown_digest='true' and not lid1.id=lid2.id",
+ + " l2.id and l2.wellknown_digest=true and not lid1.id=lid2.id",
nativeQuery = true)
List