projects
/
platform
/
core
/
multimedia
/
libmedia-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8cd38b
)
Fix duplicated query
94/138894/1
submit/tizen/20170718.004734
author
Minje Ahn
<minje.ahn@samsung.com>
Fri, 14 Jul 2017 07:07:36 +0000
(16:07 +0900)
committer
Minje Ahn
<minje.ahn@samsung.com>
Fri, 14 Jul 2017 07:07:36 +0000
(16:07 +0900)
Change-Id: I9c8d2c7545f19c23b6043bea46d07b2badd30cb5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-album.c
patch
|
blob
|
history
diff --git
a/src/common/media-svc-album.c
b/src/common/media-svc-album.c
index
7c588f0
..
1c6cd44
100755
(executable)
--- 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);