fixed utc fails 76/42976/2
authorGukhwan Cho <gh78.cho@samsung.com>
Mon, 6 Jul 2015 12:53:48 +0000 (21:53 +0900)
committerGukhwan Cho <gh78.cho@samsung.com>
Tue, 7 Jul 2015 02:29:33 +0000 (11:29 +0900)
Change-Id: I27a737160fda631b449762f45613f8b42e9965f1
Signed-off-by: Gukhwan Cho <gh78.cho@samsung.com>
native/ctsvc_db_plugin_activity_photo.c
native/ctsvc_db_plugin_activity_photo_helper.c
native/ctsvc_db_plugin_my_profile.c
packaging/contacts-service.spec

index 4710899..a25c77e 100644 (file)
@@ -324,7 +324,7 @@ static int __ctsvc_db_activity_photo_get_records_with_query(contacts_query_h que
                        case CTSVC_PROPERTY_ACTIVITY_PHOTO_ACTIVITY_ID:
                                activity_photo->activity_id= ctsvc_stmt_get_int(stmt, i);
                                break;
-                       case CTSVC_PROPERTY_MESSENGER_LABEL:
+                       case CTSVC_PROPERTY_ACTIVITY_PHOTO_URL:
                                temp = ctsvc_stmt_get_text(stmt, i);
                                activity_photo->photo_url = SAFE_STRDUP(temp);
                                break;
index 1eae2ed..2778c84 100644 (file)
@@ -111,7 +111,7 @@ int ctsvc_db_activity_photo_update(contacts_record_h record)
 
        do {
                if (CONTACTS_ERROR_NONE != (ret = ctsvc_db_create_set_query(record, &set, &bind_text))) break;
-               if (CONTACTS_ERROR_NONE != (ret = ctsvc_db_update_record_with_set_query(set, bind_text, CTS_TABLE_DATA, activity_photo->id))) break;
+               if (CONTACTS_ERROR_NONE != (ret = ctsvc_db_update_record_with_set_query(set, bind_text, CTS_TABLE_ACTIVITY_PHOTOS, activity_photo->id))) break;
                ctsvc_set_activity_noti();
                ctsvc_set_activity_photo_noti();
        } while (0);
index dd06d0a..92c8ea8 100644 (file)
@@ -78,7 +78,7 @@ static int __ctsvc_db_get_my_profile_base_info(int id, ctsvc_my_profile_s *my_pr
 
        snprintf(query, sizeof(query),
                        "SELECT my_profile_id, addressbook_id, changed_time, %s, image_thumbnail_path, uid "
-                               "FROM "CTS_TABLE_MY_PROFILES" WHERE my_profile_id = %d",
+                               "FROM "CTS_TABLE_MY_PROFILES" WHERE my_profile_id = %d AND deleted = 0",
                                ctsvc_get_display_column(), id);
 
        ret = ctsvc_query_prepare(query, &stmt);
index d7a4248..1536361 100644 (file)
@@ -1,6 +1,6 @@
 Name:       contacts-service
 Summary:    Contacts Service
-Version:    0.12.30
+Version:    0.12.31
 Release:    1
 Group:      Social & Content/Pim
 License:    Apache-2.0