diff options
author | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-11-17 13:59:17 +0900 |
---|---|---|
committer | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-11-17 18:07:03 -0800 |
commit | b6880cfb976e81fb08b330258c3a91eaffad661b (patch) | |
tree | 29b13f12d6540728133ca90d964ddc4b8c7c9261 | |
parent | 92a812a33257a128602177c2667da37a1ec968c8 (diff) | |
download | msg-service-b6880cfb976e81fb08b330258c3a91eaffad661b.tar.gz msg-service-b6880cfb976e81fb08b330258c3a91eaffad661b.tar.bz2 msg-service-b6880cfb976e81fb08b330258c3a91eaffad661b.zip |
[TSAM-9944] fix code to search message with text of mms, not file name
Change-Id: Ib9fe646b26eccafd1c2478e33010b513517ec3e1
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-x | utils/MsgUtilStorage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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), |