From 96b42efbaec07e852022fa87f82ba2b56a164e33 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 7 Aug 2007 17:20:22 +0000 Subject: [PATCH] Switch stataData to an untyped column so that Depot can do the right thing with it. BLOB on MySQL has a maximum length of 65535, so we'll preserve those semantics even though Depot will now use VARBINARY on MySQL for columns of length 65535 and lower. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@398 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/stats/server/persist/StatRecord.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/java/com/threerings/stats/server/persist/StatRecord.java b/src/java/com/threerings/stats/server/persist/StatRecord.java index 972426ec..eb7cddf0 100644 --- a/src/java/com/threerings/stats/server/persist/StatRecord.java +++ b/src/java/com/threerings/stats/server/persist/StatRecord.java @@ -66,11 +66,8 @@ public class StatRecord extends PersistentRecord @Column(name="STAT_CODE") public int statCode; - /** - * The data associated with the stat. TODO: BLOB will break on PostgreSQL, which in turn - * will serve as an excellent TODO reminder that we need to figure out how to deal properly. - */ - @Column(name="STAT_DATA", type="BLOB") + /** The data associated with the stat. */ + @Column(name="STAT_DATA", length=65535) public byte[] statData; /**