case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP:
case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP_ASSIGNED:
case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP_NOT_ASSIGNED:
- temp_len = SAFE_SNPRINTF(&query, &query_size, len, " temp_contacts ");
- if (0 <= temp_len)
- len += temp_len;
- break;
-
case CTSVC_ENUM_URI_PERSON:
break;
len += temp_len;
}
temp_len = SAFE_SNPRINTF(&query, &query_size, len, ")) as temp_data ON "
- "temp_data.temp_contact_id = temp_contacts.contact_id ");
+ "temp_data.temp_contact_id = contact_id ");
if (0 <= temp_len)
len += temp_len;
}
case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP:
case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP_ASSIGNED:
case CTSVC_ENUM_URI_READ_ONLY_PERSON_GROUP_NOT_ASSIGNED:
- temp_len = SAFE_SNPRINTF(&query, &query_size, len, " WHERE temp_contacts.person_id IN (SELECT "
- "person_id FROM "CTS_TABLE_CONTACTS" WHERE deleted = 0 AND temp_contacts.contact_id IN ");
+ temp_len = SAFE_SNPRINTF(&query, &query_size, len, " WHERE person_id IN (SELECT "
+ "person_id FROM "CTS_TABLE_CONTACTS" WHERE deleted = 0 AND contact_id IN ");
if (0 <= temp_len)
len += temp_len;