From c1c747ddacf8d2db1016f3549904ead48e4b0cc2 Mon Sep 17 00:00:00 2001 From: Gukhwan Cho Date: Mon, 6 Jul 2015 21:53:48 +0900 Subject: [PATCH] fixed utc fails Change-Id: I27a737160fda631b449762f45613f8b42e9965f1 Signed-off-by: Gukhwan Cho --- native/ctsvc_db_plugin_activity_photo.c | 2 +- native/ctsvc_db_plugin_activity_photo_helper.c | 2 +- native/ctsvc_db_plugin_my_profile.c | 2 +- packaging/contacts-service.spec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/native/ctsvc_db_plugin_activity_photo.c b/native/ctsvc_db_plugin_activity_photo.c index 4710899..a25c77e 100644 --- a/native/ctsvc_db_plugin_activity_photo.c +++ b/native/ctsvc_db_plugin_activity_photo.c @@ -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; diff --git a/native/ctsvc_db_plugin_activity_photo_helper.c b/native/ctsvc_db_plugin_activity_photo_helper.c index 1eae2ed..2778c84 100644 --- a/native/ctsvc_db_plugin_activity_photo_helper.c +++ b/native/ctsvc_db_plugin_activity_photo_helper.c @@ -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); diff --git a/native/ctsvc_db_plugin_my_profile.c b/native/ctsvc_db_plugin_my_profile.c index dd06d0a..92c8ea8 100644 --- a/native/ctsvc_db_plugin_my_profile.c +++ b/native/ctsvc_db_plugin_my_profile.c @@ -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); diff --git a/packaging/contacts-service.spec b/packaging/contacts-service.spec index d7a4248..1536361 100644 --- a/packaging/contacts-service.spec +++ b/packaging/contacts-service.spec @@ -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 -- 2.7.4