int ret = MS_MEDIA_ERR_NONE;
column_info_s *col_ptr = NULL;
char *sql = NULL;
- char table_query[4096] = {0, };
+ char table_query[MEDIA_SVC_QUERY_LEN_NORMAL] = {0, };
char temp[1024] = {0, };
bool sflag = false;
int i, len;
table_info_s *tb = NULL;
column_info_s *col_ptr = NULL;
char *sql = NULL;
- char table_query[4096] = {0, };
- char index_query[4096] = {0, };
- char trigger_query[4096] = {0, };
+ char table_query[MEDIA_SVC_QUERY_LEN_NORMAL] = {0, };
+ char index_query[MEDIA_SVC_QUERY_LEN_NORMAL] = {0, };
+ char trigger_query[MEDIA_SVC_QUERY_LEN_NORMAL] = {0, };
char table_query_sub[1024] = {0, };
char temp[1024] = {0 ,};
int sflag = false;
int item_cnt = 0;
int idx = 0;
GList *storage_list = NULL;
- char view_query[4096] = {0, };
+ char view_query[MEDIA_SVC_QUERY_LEN_NORMAL] = {0, };
memset(view_query, 0x00, sizeof(view_query));
snprintf(view_query, sizeof(view_query), "DROP VIEW IF EXISTS %s; CREATE VIEW IF NOT EXISTS %s AS SELECT * from %s ", MEDIA_SVC_DB_VIEW_MEDIA, MEDIA_SVC_DB_VIEW_MEDIA, MEDIA_SVC_DB_TABLE_MEDIA);
#define MEDIA_SVC_PATHNAME_SIZE 4096 /**< Length of Path name. */
#define MEDIA_SVC_UUID_SIZE 36 /**< Length of UUID*/
#define MEDIA_SVC_QUERY_LEN_MAX 4096*2 /**< Max Query length*/
+#define MEDIA_SVC_QUERY_LEN_NORMAL 4096 /**< Normal Query length*/
+
#define MEDIA_SVC_TAG_UNKNOWN ""
#define MEDIA_SVC_MEDIA_PATH tzplatform_mkpath(TZ_USER_SHARE, "media") /**< Media path*/