← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20476: Reverted r 20474

 

------------------------------------------------------------
revno: 20476
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-02 15:59:27 +0200
message:
  Reverted r 20474
modified:
  dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java	2015-10-02 12:28:46 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/table/AbstractJdbcTableManager.java	2015-10-02 13:59:27 +0000
@@ -205,11 +205,13 @@
         final String tempTable = table.getTempTableName();
         final String realTable = table.getTableName();
         
-        final String sql = 
-            "drop table " + realTable + ";" +
-            "alter table " + tempTable + " rename to " + realTable + ";";
-        
-        executeSilently( sql );
+        final String sqlDrop = "drop table " + realTable;
+        
+        executeSilently( sqlDrop );
+        
+        final String sqlAlter = "alter table " + tempTable + " rename to " + realTable;
+        
+        executeSilently( sqlAlter );
     }
 
     @Override