dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #14924
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5201: Uuid remnants
------------------------------------------------------------
revno: 5201
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-11-22 19:52:16 +0100
message:
Uuid remnants
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.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-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java 2011-11-12 18:43:35 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/common/IdentityPopulator.java 2011-11-22 18:52:16 +0000
@@ -106,18 +106,6 @@
count = 0;
- resultSet = statement.executeQuery( "SELECT * from " + table + " WHERE uuid IS NULL" );
- while ( resultSet.next() )
- {
- ++count;
- resultSet.updateString( "uuid", UUID.randomUUID().toString() );
- resultSet.updateRow();
- }
- if ( count > 0 )
- {
- log.info( count + " uuids updated on " + table );
- }
-
Timestamp now = new Timestamp( new Date().getTime() );
resultSet = statement.executeQuery( "SELECT * from " + table + " WHERE lastUpdated IS NULL" );