Change path to folder_path in folder table
[platform/core/multimedia/libmedia-service.git] / src / common / media-svc-storage.c
index fbca9ae..7ab1b07 100755 (executable)
@@ -109,7 +109,7 @@ int _media_svc_update_storage_path(sqlite3 *handle, const char *storage_id, cons
        }
 
        /*Folder table update*/
-       sql = sqlite3_mprintf("UPDATE '%q' SET path=REPLACE(path, %Q, %Q) WHERE storage_uuid=%Q;", MEDIA_SVC_DB_TABLE_FOLDER, old_storage_path, path, storage_id);
+       sql = sqlite3_mprintf("UPDATE '%q' SET folder_path=REPLACE(folder_path, %Q, %Q) WHERE storage_uuid=%Q;", MEDIA_SVC_DB_TABLE_FOLDER, old_storage_path, path, storage_id);
        ret = _media_svc_sql_query(sql, uid);
        SQLITE3_SAFE_FREE(sql);
        if (ret != MS_MEDIA_ERR_NONE) {