From beb58c2c41c102f38bdf2cff7998e3bea2efa810 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Fri, 27 Jul 2007 21:18:30 +0000 Subject: [PATCH] Another tweak, now that code/value is the full key. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@392 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/stats/server/persist/StatRepository.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/java/com/threerings/stats/server/persist/StatRepository.java b/src/java/com/threerings/stats/server/persist/StatRepository.java index cfe36568..b681cbe7 100644 --- a/src/java/com/threerings/stats/server/persist/StatRepository.java +++ b/src/java/com/threerings/stats/server/persist/StatRepository.java @@ -254,9 +254,7 @@ public class StatRepository extends DepotRepository // if it is a duplicate row exception, possibly someone inserted our value // before we could, in which case we can just look up the new mapping StringCodeRecord record = load( - StringCodeRecord.class, - new Where(StringCodeRecord.STAT_CODE_C, type.code(), - StringCodeRecord.VALUE_C, value)); + StringCodeRecord.class, StringCodeRecord.getKey(type.code(), value)); if (record != null) { log.info("Value collision assigning string code [type=" + type + ", value=" + value + "].");