From b4f84d4d8981b80ab9712820ebb1e2c5437976e7 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 27 Jul 2016 12:08:16 +0200 Subject: [PATCH] Typo --- src/mrchat.h | 5 +++-- src/mrmsg.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mrchat.h b/src/mrchat.h index ba38edc1..c34e62e7 100644 --- a/src/mrchat.h +++ b/src/mrchat.h @@ -74,8 +74,9 @@ public: private: // the mailbox, the chat belongs to - #define MR_CHAT_FIELDS " c.id, c.type, c.name " - #define MR_GET_CHATS_PREFIX "SELECT " MR_CHAT_FIELDS "," MR_MSG_FIELDS " FROM chats c LEFT JOIN msg m ON (c.id=m.chat_id AND m.timestamp=(SELECT MIN(timestamp) FROM msg WHERE chat_id=c.id)) " + #define MR_CHAT_FIELDS " c.id,c.type,c.name " + #define MR_GET_CHATS_PREFIX "SELECT " MR_CHAT_FIELDS "," MR_MSG_FIELDS " FROM chats c " \ + "LEFT JOIN msg m ON (c.id=m.chat_id AND m.timestamp=(SELECT MIN(timestamp) FROM msg WHERE chat_id=c.id)) " bool SetChatFromStmt (sqlite3_stmt* row); void Empty (); MrMailbox* m_mailbox; diff --git a/src/mrmsg.h b/src/mrmsg.h index 9eee3c32..0f3f8e20 100644 --- a/src/mrmsg.h +++ b/src/mrmsg.h @@ -65,7 +65,7 @@ public: MrMsg (MrMailbox*); ~MrMsg (); - #define MR_MSG_FIELDS " m.id, m.from_id, m.timestamp, m.type, m.state, m.msg " // we use a define for easier string concatenation + #define MR_MSG_FIELDS " m.id,m.from_id,m.timestamp, m.type,m.state,m.msg " // we use a define for easier string concatenation bool SetMsgFromStmt (sqlite3_stmt* row, int row_offset=0); // row order is MR_MSG_FIELDS static size_t GetMsgCnt (MrMailbox*);