Change-Id: I737f6b5b18914f252e5d4264ddc798fb9e73f715
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
ACCOUNT_DEBUG("after _account_query_step returned [%d]", rc);
+#ifndef ACCOUNT_QUERY_DELETED_ACCOUNT_INFORMATION
+ ACCOUNT_CATCH_ERROR(rc == SQLITE_ROW, {}, _ACCOUNT_ERROR_RECORD_NOT_FOUND, ("The record isn't found.\n"));
+#else
/*querying information from deleted_account_table*/
if (rc != SQLITE_ROW) {
ACCOUNT_DEBUG("getting account info from deleted_account_table");
*IsDeletedAccount = true;
}
+#endif
while (rc == SQLITE_ROW) {
ACCOUNT_DEBUG("before _account_convert_column_to_account");
}
/*clear deleted account tables*/
- if (IsDeletedAccount) {
- _INFO("deleted account info requested");
+ if (1/*IsDeletedAccount*/) {
+ _INFO("clearing deleted account-info tables - account_tbl,capability_tbl,custom_tbl");
return_code = account_server_empty_deleted_account_info_tables(DEL_ACCOUNT_TBL, DEL_CAPABILITY_TBL, DEL_ACCOUNT_CUSTOM_TBL);
ACCOUNT_RETURN_VAL((return_code == _ACCOUNT_ERROR_NONE), {}, return_code, ("failed to clear deleted account tables"));
}