The problem is that when people rate the idea, the submission timestamp on the idea gets updated as well and I have no idea why!
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.CATEGORY_NAME, t0.CATEGORY_OID, t0.CATEGORY_ORDER FROM CATEGORY t0 ORDER BY t0.CATEGORY_ORDER ASC">
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 6 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.CATEGORY_NAME, t0.CATEGORY_OID, t0.CATEGORY_ORDER FROM CATEGORY t0 ORDER BY t0.CATEGORY_ORDER ASC">
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 6 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "UPDATE IDEA SET AVGRATING = ? WHERE (IDEA_OID = ? AND CATEGORY_OID = ? AND IDEADESC = ? AND IDEANAME = ? AND IDEAURL is NULL AND NUMRATINGS = ? AND PARENT_OID is NULL AND STATUS = ? AND USER_OID = ?)" withBindings: 1:-2.0(avgRating), 2:15(ideaOid), 3:5(categoryOid), 4:"Hellow!!!"(ideaDesc), 5:"Test politics entry"(ideaName), 6:1(numRatings), 7:"A"(status), 8:2(userOid)>
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "UPDATE IDEARATING SET RATING = ? WHERE (IDEARATING_OID = ? AND IDEA_OID = ? AND RATING = ? AND USER_OID = ?)" withBindings: 1:-2(rating), 2:10(ideaRatingOid), 3:15(ideaOid), 4:-4(rating), 5:1(userOid)>
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.AVGRATING, t0.CATEGORY_OID, t0.IDEADESC, t0.IDEANAME, t0.IDEA_OID, t0.IDEAURL, t0.NUMRATINGS, t0.PARENT_OID, t0.STATUS, t0.SUBMIT_DATE, t0.USER_OID FROM IDEA t0 WHERE t0.IDEA_OID = ?" withBindings: 1:15(ideaOid)>
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 1 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.CATEGORY_NAME, t0.CATEGORY_OID, t0.CATEGORY_ORDER FROM CATEGORY t0 ORDER BY t0.CATEGORY_ORDER ASC">
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 6 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.IDEA_OID, t0.IDEARATING_OID, t0.RATING, t0.USER_OID FROM IDEARATING t0 WHERE t0.IDEARATING_OID = ?" withBindings: 1:10(ideaRatingOid)>
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 1 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Begin Internal Transaction
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT t0.AVGRATING, t0.CATEGORY_OID, t0.IDEADESC, t0.IDEANAME, t0.IDEA_OID, t0.IDEAURL, t0.NUMRATINGS, t0.PARENT_OID, t0.STATUS, t0.SUBMIT_DATE, t0.USER_OID FROM IDEA t0 WHERE t0.PARENT_OID = ?" withBindings: 1:15(parentOid)>
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - 0 row(s) processed
Sep 26 23:03:19 Ideas[58094] (ERXNSLogLog4jBridge.java:44) DEBUG NSLog - === Commit Internal Transaction