There is a bug
/**
* @see net.jforum.dao.LuceneDAO#firstPostIdByDate(java.util.Date)
*/
public int firstPostIdByDate(Date date)
{
return
this.getPostIdByDate(date,
SystemGlobals.getSql("SearchModel.firstPostIdByDate"));
}
/**
* @see net.jforum.dao.LuceneDAO#lastPostIdByDate(java.util.Date)
*/
public int lastPostIdByDate(Date date)
{
return
this.getPostIdByDate(date,
SystemGlobals.getSql("SearchModel.lastPostIdByDate"));
}
private int
getPostIdByDate(Date date,
String query)
{
int postId = 0;
PreparedStatement p = null;
ResultSet rs = null;
try {
p = JForumExecutionContext.getConnection().prepareStatement(
SystemGlobals.getSql(query));
[originally posted on jforum.net by Exo7]