From ce00a571eb0eb647cd36bc13a42f0369edba0402 Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Fri, 14 Jul 2017 16:07:36 +0900 Subject: [PATCH] Fix duplicated query Change-Id: I9c8d2c7545f19c23b6043bea46d07b2badd30cb5 Signed-off-by: Minje Ahn --- src/common/media-svc-album.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/media-svc-album.c b/src/common/media-svc-album.c index 7c588f0..1c6cd44 100755 --- a/src/common/media-svc-album.c +++ b/src/common/media-svc-album.c @@ -97,8 +97,7 @@ int _media_svc_append_album(sqlite3 *handle, const char *album, const char *arti { int ret = MS_MEDIA_ERR_NONE; - char *sql = sqlite3_mprintf("INSERT INTO %s (name, artist, album_art, album_art) values (%Q, %Q, %Q, %Q); ", - MEDIA_SVC_DB_TABLE_ALBUM, album, artist, album_art, album_art); + char *sql = sqlite3_mprintf("INSERT INTO %s (name, artist, album_art) values (%Q, %Q, %Q);", MEDIA_SVC_DB_TABLE_ALBUM, album, artist, album_art); ret = _media_svc_sql_query(sql, uid); SQLITE3_SAFE_FREE(sql); media_svc_retv_if(ret != MS_MEDIA_ERR_NONE, ret); -- 2.34.1