Commit 0d96ef97 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fix room history retrieval. JID's resources are now null if empty (no longer...

Fix room history retrieval. JID's resources are now null if empty (no longer an empty string). JM-1129

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9219 b35dd754-fafc-0310-a699-88a17e54d16e
parent 336f209f
......@@ -51,7 +51,7 @@ public class MUCPersistenceManager {
"SELECT jid, nickname FROM mucMember WHERE roomID=?";
private static final String LOAD_HISTORY =
"SELECT sender, nickname, time, subject, body FROM mucConversationLog " +
"WHERE time>? AND roomID=? AND (nickname <> '' OR subject IS NOT NULL) ORDER BY time";
"WHERE time>? AND roomID=? AND (nickname IS NOT NULL OR subject IS NOT NULL) ORDER BY time";
private static final String LOAD_ALL_ROOMS =
"SELECT roomID, creationDate, modificationDate, name, naturalName, description, " +
"lockedDate, emptyDate, canChangeSubject, maxUsers, publicRoom, moderated, membersOnly, " +
......@@ -64,7 +64,7 @@ public class MUCPersistenceManager {
"SELECT roomID,jid, nickname FROM mucMember";
private static final String LOAD_ALL_HISTORY =
"SELECT roomID, sender, nickname, time, subject, body FROM mucConversationLog " +
"WHERE time>? AND (nickname <> '' OR subject IS NOT NULL) ORDER BY time";
"WHERE time>? AND (nickname IS NOT NULL OR subject IS NOT NULL) ORDER BY time";
private static final String UPDATE_ROOM =
"UPDATE mucRoom SET modificationDate=?, naturalName=?, description=?, " +
"canChangeSubject=?, maxUsers=?, publicRoom=?, moderated=?, membersOnly=?, " +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment