cursor_number++;
cursor_keyword++;
}
- if (false == is_start) { /* false to search */
+ if (false == is_start) {
+ DBG("false to search");
return false;
}
*out_len_keyword = len_keyword;
if (NULL == pos_at) {
/* LCOV_EXCL_START */
ERR("Invalid value[%s]", temp);
- return NULL;
+ return strdup(temp);
/* LCOV_EXCL_STOP */
}
DBG("[%s]", temp);
}
if (false == is_modified)
- return NULL;
+ return strdup(temp);
len_full = strlen(temp) + strlen(start_match) + strlen(end_match) + 1;
if (NULL == mod_temp) {
/* LCOV_EXCL_START */
ERR("calloc() Fail");
- return NULL;
+ return strdup(temp);
/* LCOV_EXCL_STOP */
}
if (use_replaced_keyword)
free(half_keyword);
- DBG("[%s]", query);
return strdup(query);
}
if (use_replaced_keyword)
free(half_keyword);
- DBG("[%s]", query);
return strdup(query);
}
if (use_replaced_keyword)
free(half_keyword);
- DBG("[%s]", query);
return strdup(query);
}
field_name);
}
}
- DBG("[%s]", out_projection);
*projection = strdup(out_projection);
return CONTACTS_ERROR_NONE;
free(query_name);
/* datatype=1 NAME */
- temp_len = SAFE_SNPRINTF(&query, &query_size, len, ") AND datatype=1 ");
+ temp_len = SAFE_SNPRINTF(&query, &query_size, len, ") AND datatype=1 AND is_my_profile=0 ");
if (0 <= temp_len)
len += temp_len;
free(query_number);
/* datatype=8 NUMBER */
- temp_len = SAFE_SNPRINTF(&query, &query_size, len, ") AND datatype=8 ");
+ temp_len = SAFE_SNPRINTF(&query, &query_size, len, ") AND datatype=8 AND is_my_profile=0 ");
if (0 <= temp_len)
len += temp_len;
"WHEN datatype=%d THEN data3 " /* EMAIL */
"WHEN datatype=%d THEN data3 " /* RELATIONSHIP */
"WHEN datatype=%d THEN data3 " /* NOTE */
- "END) as _data FROM "CTS_TABLE_DATA" WHERE contact_id IN (",
+ "END) as _data FROM "CTS_TABLE_DATA" WHERE is_my_profile=0 AND contact_id IN (",
CONTACTS_DATA_TYPE_POSTAL, CONTACTS_DATA_TYPE_MESSENGER, CONTACTS_DATA_TYPE_COMPANY,
CONTACTS_DATA_TYPE_NICKNAME, CONTACTS_DATA_TYPE_EMAIL, CONTACTS_DATA_TYPE_RELATIONSHIP,
CONTACTS_DATA_TYPE_NOTE, CONTACTS_DATA_TYPE_POSTAL, CONTACTS_DATA_TYPE_MESSENGER,