summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-07-10 02:13:24 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2017-07-10 02:18:21 (GMT)
commit37e9042aa25253fe91f67d0ed2e7cb7cfda25b88 (patch)
tree8620745e63c873532fd421f9125ceb55e82befd1 /src/include
parent19fcd8fbf7baff560bc70737d42a5c3ea26887bb (diff)
downloadlibmedia-thumbnail-37e9042aa25253fe91f67d0ed2e7cb7cfda25b88.zip
libmedia-thumbnail-37e9042aa25253fe91f67d0ed2e7cb7cfda25b88.tar.gz
libmedia-thumbnail-37e9042aa25253fe91f67d0ed2e7cb7cfda25b88.tar.bz2
Reduce error checkerrefs/changes/15/137815/2
1. Reinforce query 2. Merge function Change-Id: Ia6c560056f7c4daeaf2dd9107308b91876e19a93 Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/util/media-thumb-db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/util/media-thumb-db.h b/src/include/util/media-thumb-db.h
index a4cfc52..a6eedf9 100755
--- a/src/include/util/media-thumb-db.h
+++ b/src/include/util/media-thumb-db.h
@@ -29,7 +29,7 @@
#define SQLITE3_FINALIZE(x) {if (x != NULL) sqlite3_finalize(x); }
#define SQLITE3_SAFE_FREE(x) {if (x != NULL) {sqlite3_free(x); x = NULL; } }
-#define SELECT_THUMB_BY_PATH "SELECT thumbnail_path, width, height FROM media WHERE path='%q';"
+#define SELECT_THUMB_BY_PATH "SELECT thumbnail_path, width, height FROM media WHERE path='%q' AND thumbnail_path IS NOT NULL;"
#define UPDATE_THUMB_BY_PATH "UPDATE media SET thumbnail_path = '%q' WHERE path='%q';"
#define UPDATE_THUMB_WH_BY_PATH "UPDATE media SET thumbnail_path = '%q', width=%d,height=%d WHERE path='%q';"