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:
7099815
)
Update the query used to delete invalid items in storage
88/146688/1
author
Minje Ahn
<minje.ahn@samsung.com>
Wed, 30 Aug 2017 05:07:29 +0000
(14:07 +0900)
committer
Minje Ahn
<minje.ahn@samsung.com>
Wed, 30 Aug 2017 05:07:29 +0000
(14:07 +0900)
Change-Id: I6a6e63c61474f3135b0267fde2524fed4cdbe843
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/common/media-svc-media.c
patch
|
blob
|
history
diff --git
a/src/common/media-svc-media.c
b/src/common/media-svc-media.c
index
217a5be
..
1892d21
100755
(executable)
--- a/
src/common/media-svc-media.c
+++ b/
src/common/media-svc-media.c
@@
-524,7
+524,7
@@
int _media_svc_delete_invalid_items(sqlite3 *handle, const char *storage_id, med
}
}
- char *sql = sqlite3_mprintf("DELETE FROM '%s' WHERE validity = 0
;", storage_id
);
+ char *sql = sqlite3_mprintf("DELETE FROM '%s' WHERE validity = 0
AND storage_type = %d;", storage_id, storage_type
);
ret = _media_svc_sql_query(sql, uid);
SQLITE3_SAFE_FREE(sql);