}
int _account_query_by_account_id(sqlite3 *account_db_handle, account_add_capability_cb capability_cb,
- account_add_custom_cb custom_cb, int account_id, void *user_data, bool is_deleted)
+ account_add_custom_cb custom_cb, int account_id, void *user_data, bool query_del_acc)
{
_INFO("_account_query_by_account_id start");
/*check in proper tables of Capability & Account_Custom*/
if (capability_cb != NULL) {
- if (!is_deleted) {
+ if (!query_del_acc) {
_INFO("account query capability by account-id - original capability table");
ACCOUNT_SNPRINTF(query, sizeof(query), "SELECT * FROM %s WHERE account_id = %d", CAPABILITY_TABLE, account_id);
} else {
}
query_for_capability = true;
} else if (custom_cb != NULL) {
- if (!is_deleted) {
+ if (!query_del_acc) {
_INFO("account query capability by account-id - original custom table");
ACCOUNT_SNPRINTF(query, sizeof(query), "SELECT * FROM %s WHERE AccountId = %d", ACCOUNT_CUSTOM_TABLE, account_id);
} else {
return error_code;
}
-int _account_query_capability_by_account_id(sqlite3 *account_db_handle, account_add_capability_cb callback, int account_id, void *user_data, bool is_deleted)
+int _account_query_capability_by_account_id(sqlite3 *account_db_handle, account_add_capability_cb callback, int account_id, void *user_data, bool query_del_acc)
{
int error_code = _ACCOUNT_ERROR_NONE;
- error_code = _account_query_by_account_id(account_db_handle, callback, NULL, account_id, user_data, is_deleted);
+ error_code = _account_query_by_account_id(account_db_handle, callback, NULL, account_id, user_data, query_del_acc);
ACCOUNT_RETURN_VAL((error_code == _ACCOUNT_ERROR_NONE), {}, error_code, ("_account_query_by_account_id failed for capability"));
return error_code;
}
-int _account_query_custom_by_account_id(sqlite3 *account_db_handle, account_add_custom_cb callback, int account_id, void *user_data, bool is_deleted)
+int _account_query_custom_by_account_id(sqlite3 *account_db_handle, account_add_custom_cb callback, int account_id, void *user_data, bool query_del_acc)
{
int error_code = _ACCOUNT_ERROR_NONE;
- error_code = _account_query_by_account_id(account_db_handle, NULL, callback, account_id, user_data, is_deleted);
+ error_code = _account_query_by_account_id(account_db_handle, NULL, callback, account_id, user_data, query_del_acc);
ACCOUNT_RETURN_VAL((error_code == _ACCOUNT_ERROR_NONE), {}, error_code, ("_account_query_by_account_id failed for custom"));