migrating identities from QSettings to the storage backend
[quassel.git] / src / core / SQL / SQLite / 12 / select_messagesNew.sql
1 SELECT messageid, time,  type, flags, sender, message
2 FROM backlog
3 JOIN sender ON backlog.senderid = sender.senderid
4 WHERE bufferid = :bufferid
5     AND backlog.messageid >= :firstmsg
6 ORDER BY messageid DESC
7 LIMIT :limit