Change-Id: Idd0b6fafe2f42c7a248b719d6bcb9f10cc578a19
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
int ret = MS_MEDIA_ERR_NONE;
char *sql = NULL;
-#ifdef _USE_TVPD_MODE
MS_DBG_RETVM_IF(!MS_STRING_VALID(storage_id), MS_MEDIA_ERR_INVALID_PARAMETER, "storage_id is NULL");
- sql = sqlite3_mprintf("DELETE FROM folder WHERE storage_uuid='%q' AND validity IN (%d, %d)", storage_id, MS_INVALID, MS_SCANNING);
-#else
sql = sqlite3_mprintf("DELETE FROM folder WHERE validity IN (%d, %d) AND storage_uuid=%Q", MS_INVALID, MS_SCANNING, storage_id);
-#endif
ret = media_db_update_db_direct(sql, uid);
-
MS_SQL_SAFE_FREE(sql);
return ret;