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+";");