Mercurial > hg > openmind
changeset 13:85dddb9d54ef
output more information.
author | casties |
---|---|
date | Fri, 10 Apr 2015 09:30:38 +0000 |
parents | 3c28ecafafc1 |
children | 034df8d5c923 |
files | src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java Fri Apr 10 09:19:52 2015 +0000 +++ b/src/main/java/org/mpi/openmind/scripts/FixRelationNonCurrent.java Fri Apr 10 09:30:38 2015 +0000 @@ -190,16 +190,18 @@ List<Long> target_mtimes = getCurrentVersionTime(target_id, conn); if (target_mtimes.size() == 1) { // update target_mtime of relation + long target_mtime = target_mtimes.get(0); String qUpdate = "update openmind.node " - + "set " + type + "_modif = " + target_mtimes.get(0).toString() + " " + + "set " + type + "_modif = " + target_mtime + " " + "where id = " + id.toString() + " " + "and system_status = 'CURRENT_VERSION' "; Statement sUpdate = conn.createStatement(); int rUpdate = sUpdate.executeUpdate(qUpdate); sUpdate.close(); + System.out.println(" relation " + target_id + " " + type + " was updated to " + target_mtime); return true; } else { - System.out.println("ERROR: relation " + type + target_id + " has " + target_mtimes.size() + " CURRENT_VERSIONs"); + System.out.println("ERROR: relation " + type + " " + target_id + " has " + target_mtimes.size() + " CURRENT_VERSIONs"); } } sTargetId.close();