Author: xor
Date: 2008-11-12 00:39:08 +0000 (Wed, 12 Nov 2008)
New Revision: 23504
Modified:
trunk/plugins/Freetalk/FTBoard.java
Log:
Add changes suggested by toad.
Modified: trunk/plugins/Freetalk/FTBoard.java
===================================================================
--- trunk/plugins/Freetalk/FTBoard.java 2008-11-12 00:26:27 UTC (rev 23503)
+++ trunk/plugins/Freetalk/FTBoard.java 2008-11-12 00:39:08 UTC (rev 23504)
@@ -207,8 +207,8 @@
* Or somehow tell db4o to keep a per-board
thread index which is sorted by Date? - This would be the best solution */
Query q = db.query();
q.constrain(FTMessage.class);
- q.descend("mBoards").constrain(mName); /*
FIXME: mBoards is an array. Does constrain() check whether it contains the
element mName? */
- q.descend("mThread").constrain(null);
+ q.descend("mBoards").constrain(mName); /*
FIXME: mBoards is an array. constrain() does NOT check whether it contains the
element mName. We need to change this code. */
+ q.descend("mThread").constrain(null).identity();
q.descend("mDate").orderDescending();
iter = q.execute().iterator();
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs