summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMinje Ahn <minje.ahn@samsung.com>2017-05-22 06:22:48 (GMT)
committerMinje Ahn <minje.ahn@samsung.com>2017-05-22 06:27:34 (GMT)
commitbddb7b6537d4d96c29c3343ce454a1b1462c07a4 (patch)
treec87d747ef15ab3b7cc7399853f3397ea052dab94 /src/include
parent8a2d56bc350e48c3109d4381f670b676494dd39e (diff)
downloadlibmedia-thumbnail-bddb7b6537d4d96c29c3343ce454a1b1462c07a4.zip
libmedia-thumbnail-bddb7b6537d4d96c29c3343ce454a1b1462c07a4.tar.gz
libmedia-thumbnail-bddb7b6537d4d96c29c3343ce454a1b1462c07a4.tar.bz2
Remove and merge DB operationrefs/changes/62/130362/2
Change-Id: I86b50705f05f68307a0b0d76df244e740626026c Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/util/media-thumb-db.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/util/media-thumb-db.h b/src/include/util/media-thumb-db.h
index 03cca1f..b3d2d71 100755
--- a/src/include/util/media-thumb-db.h
+++ b/src/include/util/media-thumb-db.h
@@ -28,11 +28,8 @@
#define STRING_VALID(str) \
((str != NULL && strlen(str) > 0) ? TRUE : FALSE)
-#define SELECT_MEDIA_BY_PATH "SELECT thumbnail_path FROM media WHERE path='%q';"
-#define SELECT_TYPE_BY_PATH "SELECT media_type FROM media WHERE path='%q';"
-#define SELECT_WH_BY_PATH "SELECT width, height FROM media WHERE path='%q';"
+#define SELECT_THUMB_BY_PATH "SELECT thumbnail_path, width, height FROM media WHERE path='%q';"
#define UPDATE_THUMB_BY_PATH "UPDATE media SET thumbnail_path = '%q' WHERE path='%q';"
-#define UPDATE_WH_BY_PATH "UPDATE media SET width=%d,height=%d WHERE path='%q';"
#define UPDATE_THUMB_WH_BY_PATH "UPDATE media SET thumbnail_path = '%q', width=%d,height=%d WHERE path='%q';"
sqlite3 *_media_thumb_db_get_handle();