From edc47e47a8a0b547d6857f1729981029b0e74c8e Mon Sep 17 00:00:00 2001 From: Manuel Soulier Date: Mon, 25 Nov 2024 18:03:35 +0100 Subject: [PATCH] fix: condition to vacuum catalog --- .../src/main/java/fr/insee/arc/utils/dao/UtilitaireDao.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arc-utils/src/main/java/fr/insee/arc/utils/dao/UtilitaireDao.java b/arc-utils/src/main/java/fr/insee/arc/utils/dao/UtilitaireDao.java index 14e7f0d8..13f7e879 100644 --- a/arc-utils/src/main/java/fr/insee/arc/utils/dao/UtilitaireDao.java +++ b/arc-utils/src/main/java/fr/insee/arc/utils/dao/UtilitaireDao.java @@ -749,7 +749,10 @@ public void maintenancePgCatalog(Connection connexion, String type) { for (String t : gb.getColumnValues("relname")) { requete.append(FormatSQL.vacuumSecured(t, type)); } - executeImmediate(connexion, requete.toString()); + if (requete.length()>0) + { + executeImmediate(connexion, requete.toString()); + } } catch (Exception ex) { LoggerHelper.error(LOGGER, ex); } finally {