[TSAM-9200] fix query error 32/94932/1
authorKyeonghun Lee <kh9090.lee@samsung.com>
Fri, 28 Oct 2016 04:21:57 +0000 (13:21 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Wed, 2 Nov 2016 04:31:52 +0000 (21:31 -0700)
Change-Id: I51b9a9f9e26403197ef65afa88c2127d08ebb773
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
(cherry picked from commit 03da48757a783f54071a4ae93ae53cf56a9ebd86)

manager/src/msg-manager-notification.cpp

index d977352..533ba53 100644 (file)
@@ -1787,7 +1787,7 @@ int getLatestMsgInfo(MSG_MGR_NOTI_INFO_S *noti_info, bool isForInstantMessage)
                                "B.ATTACHMENT_COUNT "
                                "FROM %s B "
                                "LEFT JOIN %s A ON A.CONV_ID=B.CONV_ID "
-                               "AND B.READ_STATUS=0 AND (B.FOLDER_ID=%d OR B.FOLDER_ID=%d) "
+                               "WHERE B.READ_STATUS=0 AND (B.FOLDER_ID=%d OR B.FOLDER_ID=%d) "
                                "AND B.STORAGE_ID = %d "
                                "ORDER BY B.DISPLAY_TIME DESC;",
                                MSG_MMS_TYPE, MSG_NETWORK_RECEIVED, MMS_PLUGIN_MESSAGE_TABLE_NAME,