Skip to content
Snippets Groups Projects
Commit 233c09be authored by srosse's avatar srosse
Browse files

OO-2826: add if exists to the drop table

parent a64ae230
No related branches found
No related tags found
No related merge requests found
...@@ -55,9 +55,9 @@ public class PostgreSQLTempStatTableCreator implements IStatisticUpdater { ...@@ -55,9 +55,9 @@ public class PostgreSQLTempStatTableCreator implements IStatisticUpdater {
final long startTime = System.currentTimeMillis(); final long startTime = System.currentTimeMillis();
log_.info("updateStatistic: dropping o_stat_temptable if still existing"); log_.info("updateStatistic: dropping o_stat_temptable if still existing");
try { try {
jdbcTemplate.execute("drop table o_stat_temptable;"); jdbcTemplate.execute("drop table if exists o_stat_temptable;");
} catch (Exception e) { } catch (Exception e) {
// log_.error("Cannot drop the temporary table", e);
} }
try{ try{
......
...@@ -151,8 +151,6 @@ class StatisticUpdateManagerImpl implements StatisticUpdateManager, GenericEvent ...@@ -151,8 +151,6 @@ class StatisticUpdateManagerImpl implements StatisticUpdateManager, GenericEvent
Date lastUpdatedDate = new Date(lastUpdatedInMilliseconds); Date lastUpdatedDate = new Date(lastUpdatedInMilliseconds);
Date nowDate = new Date(nowInMilliseconds); Date nowDate = new Date(nowInMilliseconds);
System.out.println(lastUpdatedDate + " :: " + nowDate);
log_.info("updateStatistics: starting the update"); log_.info("updateStatistics: starting the update");
DBFactory.getInstance().intermediateCommit(); DBFactory.getInstance().intermediateCommit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment