From: Minje Ahn Date: Thu, 16 May 2019 00:46:39 +0000 (+0900) Subject: Fix query X-Git-Tag: accepted/tizen/unified/20190530.043044~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d259adae91e5b82d17d1da84cfbc3c2e0234a80;p=platform%2Fcore%2Fmultimedia%2Flibmedia-service.git Fix query Change-Id: I2d724b9cec12a296a63921fc45c6e2803b047ab1 Signed-off-by: Minje Ahn --- diff --git a/src/common/media-svc.c b/src/common/media-svc.c index 2cdcf17..c5ec64f 100755 --- a/src/common/media-svc.c +++ b/src/common/media-svc.c @@ -966,7 +966,7 @@ int media_svc_create_thumbnail(const char *storage_id, const char *file_path, in } // 3. Update creation result to media db - sql = sqlite3_mprintf("UPDATE '%q' SET media_thumbnail_path='%q' WHERE path='%q';", storage_id, thumb_path, file_path); + sql = sqlite3_mprintf("UPDATE '%q' SET media_thumbnail_path='%q' WHERE media_path='%q';", storage_id, thumb_path, file_path); ret = _media_svc_sql_query(sql, uid); SQLITE3_SAFE_FREE(sql);