fix invalid query 69/107969/1
authorJeesun Kim <iamjs.kim@samsung.com>
Mon, 2 Jan 2017 06:41:39 +0000 (15:41 +0900)
committerJeesun Kim <iamjs.kim@samsung.com>
Mon, 2 Jan 2017 06:41:58 +0000 (15:41 +0900)
- need space betweeen parameter and table name

Change-Id: Ice7cd47ed9f216d272136ff1ff8423f065e54bcb

server/ctsvc_server_person.c

index 1bf883d..d9d8427 100644 (file)
@@ -747,7 +747,7 @@ int ctsvc_person_aggregate(int person_id)
        /* check vibration */
        if (person->vibration) {
                snprintf(query, sizeof(query),
-                               "SELECT C.contact_idFROM "CTS_TABLE_CONTACTS" C "
+                               "SELECT C.contact_id FROM "CTS_TABLE_CONTACTS" C "
                                "WHERE C.person_id=%d AND C.deleted = 0 "
                                "AND C.vibration = '%s'",
                                person->person_id, person->vibration);
@@ -758,7 +758,7 @@ int ctsvc_person_aggregate(int person_id)
                vibration = NULL;
        }
 
-       /* check vibration */
+       /* check message_alert */
        if (person->message_alert) {
                snprintf(query, sizeof(query),
                                "SELECT C.contact_id FROM "CTS_TABLE_CONTACTS" C "