From: Kyeonghun Lee Date: Thu, 17 Nov 2016 04:59:17 +0000 (+0900) Subject: [TSAM-9944] fix code to search message with text of mms, not file name X-Git-Tag: submit/tizen/20161202.035430~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b6880cfb976e81fb08b330258c3a91eaffad661b;p=platform%2Fcore%2Fmessaging%2Fmsg-service.git [TSAM-9944] fix code to search message with text of mms, not file name Change-Id: Ib9fe646b26eccafd1c2478e33010b513517ec3e1 Signed-off-by: Kyeonghun Lee --- diff --git a/utils/MsgUtilStorage.cpp b/utils/MsgUtilStorage.cpp index f9725bb..c632958 100755 --- a/utils/MsgUtilStorage.cpp +++ b/utils/MsgUtilStorage.cpp @@ -2496,7 +2496,7 @@ msg_error_t MsgStoGetMessageList(const MSG_LIST_CONDITION_S *pListCond, msg_stru memset(sqlQuerySubset, 0x00, sizeof(sqlQuerySubset)); if (multipartCnt > 0) { snprintf(sqlQuerySubset, sizeof(sqlQuerySubset), - "AND ((A.MSG_TEXT LIKE ? ESCAPE '%c' OR A.SUBJECT LIKE ? ESCAPE '%c' OR (C.NAME LIKE ? ESCAPE '%c' AND A.MSG_ID = C.MSG_ID AND C.CONTENT_TYPE <> 'application/smil'))) ", + "AND ((A.MSG_TEXT LIKE ? ESCAPE '%c' OR A.SUBJECT LIKE ? ESCAPE '%c' OR (C.TEXT LIKE ? ESCAPE '%c' AND A.MSG_ID = C.MSG_ID AND C.CONTENT_TYPE = 'text/plain'))) ", MSGFW_DB_ESCAPE_CHAR, MSGFW_DB_ESCAPE_CHAR, MSGFW_DB_ESCAPE_CHAR); } else { snprintf(sqlQuerySubset, sizeof(sqlQuerySubset), @@ -2511,7 +2511,7 @@ msg_error_t MsgStoGetMessageList(const MSG_LIST_CONDITION_S *pListCond, msg_stru memset(sqlQuerySubset, 0x00, sizeof(sqlQuerySubset)); if (multipartCnt > 0) { snprintf(sqlQuerySubset, sizeof(sqlQuerySubset), - "AND ((A.MSG_TEXT LIKE ? ESCAPE '%c' OR A.SUBJECT LIKE ? ESCAPE '%c' OR (C.NAME LIKE ? ESCAPE '%c' AND A.MSG_ID = C.MSG_ID AND C.CONTENT_TYPE <> 'application/smil')) ", + "AND ((A.MSG_TEXT LIKE ? ESCAPE '%c' OR A.SUBJECT LIKE ? ESCAPE '%c' OR (C.TEXT LIKE ? ESCAPE '%c' AND A.MSG_ID = C.MSG_ID AND C.CONTENT_TYPE = 'text/plain')) ", MSGFW_DB_ESCAPE_CHAR, MSGFW_DB_ESCAPE_CHAR, MSGFW_DB_ESCAPE_CHAR); } else { snprintf(sqlQuerySubset, sizeof(sqlQuerySubset),