check is_my_profile while delete contacts 67/44967/2
authorGukhwan Cho <gh78.cho@samsung.com>
Tue, 16 Jun 2015 05:18:45 +0000 (14:18 +0900)
committerMyungHoon Chae <mhoon.chae@samsung.com>
Tue, 4 Aug 2015 05:01:12 +0000 (22:01 -0700)
Change-Id: I81561b5eb05522dfdd041abe035fe7588d77706e
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
server/ctsvc_server_bg.c

index be88ef8..361e1e8 100644 (file)
@@ -112,7 +112,7 @@ static int __ctsvc_server_bg_contact_delete_step2(__ctsvc_delete_data_s* data)
 
        /* get event_list */
        snprintf(query, sizeof(query),
-               "SELECT id FROM "CTS_TABLE_DATA" WHERE contact_id = %d LIMIT %d",
+               "SELECT id FROM "CTS_TABLE_DATA" WHERE contact_id = %d AND is_my_profile = 0 LIMIT %d",
                data->current_contact_id, CTSVC_SERVER_BG_DELETE_COUNT);
 
        ret = ctsvc_query_prepare(query, &stmt);