← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21042: Minor

 

------------------------------------------------------------
revno: 21042
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-11-12 17:04:55 +0100
message:
  Minor
modified:
  dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/SpringDataValueSetStore.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-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/SpringDataValueSetStore.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/SpringDataValueSetStore.java	2015-11-12 12:23:26 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/datavalueset/SpringDataValueSetStore.java	2015-11-12 16:04:55 +0000
@@ -82,7 +82,9 @@
     {
         DataValueSet dataValueSet = new StreamingDataValueSet( XMLFactory.getXMLWriter( out ) );
 
-        writeDataValueSet( getDataValueSql( params ), params, completeDate, dataValueSet );
+        String sql = getDataValueSql( params );
+        
+        writeDataValueSet( sql, params, completeDate, dataValueSet );
 
         IOUtils.closeQuietly( out );
     }
@@ -92,7 +94,9 @@
     {
         DataValueSet dataValueSet = new StreamingJsonDataValueSet( out );
 
-        writeDataValueSet( getDataValueSql( params ), params, completeDate, dataValueSet );
+        String sql = getDataValueSql( params );
+        
+        writeDataValueSet( sql, params, completeDate, dataValueSet );
 
         IOUtils.closeQuietly( out );
     }
@@ -102,7 +106,9 @@
     {
         DataValueSet dataValueSet = new StreamingCsvDataValueSet( new CsvWriter( writer, CSV_DELIM ) );
 
-        writeDataValueSet( getDataValueSql( params ), params, completeDate, dataValueSet );
+        String sql = getDataValueSql( params );
+        
+        writeDataValueSet( sql, params, completeDate, dataValueSet );
 
         IOUtils.closeQuietly( writer );
     }