From 4dc1e6b0fa4e04684fa786a0c65d33c26b2d0a2e Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Fri, 27 Oct 2023 15:08:44 +0200 Subject: [PATCH] fix: zonky fix attempt --- .../src/test/java/fr/insee/arc/utils/query/TestDatabase.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arc-utils/src/test/java/fr/insee/arc/utils/query/TestDatabase.java b/arc-utils/src/test/java/fr/insee/arc/utils/query/TestDatabase.java index d8121d0c2..51242f91f 100644 --- a/arc-utils/src/test/java/fr/insee/arc/utils/query/TestDatabase.java +++ b/arc-utils/src/test/java/fr/insee/arc/utils/query/TestDatabase.java @@ -21,10 +21,11 @@ private static Connection instanciateTestDatabase() connection = pg.getPostgresDatabase().getConnection(); String user = connection.getMetaData().getUserName(); + System.out.println("§§§§§§§"); System.out.println(user); - UtilitaireDao.get(0).executeImmediate(connection, "GRANT CREATE ON DATABASE test TO "+user+";"); + UtilitaireDao.get(0).executeImmediate(connection, "GRANT CREATE ON DATABASE current_database() TO "+user+";");