dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34650
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17774: Fix bug 1404691: wrongly named audit table in orgunit merge query causes merge to fail.
------------------------------------------------------------
revno: 17774
committer: Halvdan Hoem Grelland <halvdanhg@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2014-12-22 14:02:42 +0100
message:
Fix bug 1404691: wrongly named audit table in orgunit merge query causes merge to fail.
modified:
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/datamerge/jdbc/JdbcDataMergeStore.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-administration/src/main/java/org/hisp/dhis/datamerge/jdbc/JdbcDataMergeStore.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/datamerge/jdbc/JdbcDataMergeStore.java 2014-10-16 06:17:19 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/datamerge/jdbc/JdbcDataMergeStore.java 2014-12-22 13:02:42 +0000
@@ -89,8 +89,8 @@
jdbcTemplate.execute( sql );
// Delete remaining source data value audits
-
- sql = "DELETE FROM datavalue_audit WHERE dataelementid=" + sourceDataElementId + " AND categoryoptioncomboid=" + sourceCategoryOptionComboId + ";";
+
+ sql = "DELETE FROM datavalueaudit WHERE dataelementid=" + sourceDataElementId + " AND categoryoptioncomboid=" + sourceCategoryOptionComboId + ";";
log.info( sql );
jdbcTemplate.execute( sql );
@@ -125,7 +125,7 @@
// Delete remaining source data value audits
- sql = "DELETE FROM datavalue_audit WHERE sourceid=" + sourceId + ";";
+ sql = "DELETE FROM datavalueaudit WHERE organisationunitid=" + sourceId + ";";
log.info( sql );
jdbcTemplate.execute( sql );