From 84dfa58dae21150abbdafb81e3ce270a91aba691 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Tue, 26 Mar 2019 19:19:47 +0900 Subject: [PATCH] Set default support-mode to 0 Add default value for support-mode for wgt packages. Change-Id: I534f9dd17a520901e0f0631c42dddb94af4ca465 Signed-off-by: Junghyun Yeon --- parser/src/pkgmgr_parser_db.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/parser/src/pkgmgr_parser_db.c b/parser/src/pkgmgr_parser_db.c index 185aecb..bf7e35d 100644 --- a/parser/src/pkgmgr_parser_db.c +++ b/parser/src/pkgmgr_parser_db.c @@ -2017,7 +2017,8 @@ static int __insert_application_info(sqlite3 *db, manifest_x *mfx) __get_bool(app->process_pool, false)); __BIND_TEXT(db, stmt, idx++, app->launch_mode); __BIND_TEXT(db, stmt, idx++, __get_bool(app->ui_gadget, false)); - __BIND_TEXT(db, stmt, idx++, app->support_mode); + __BIND_TEXT(db, stmt, idx++, + app->support_mode ? app->support_mode : "0"); __BIND_TEXT(db, stmt, idx++, __get_bool(mfx->support_disable, false)); __BIND_TEXT(db, stmt, idx++, app->component_type); @@ -2250,7 +2251,8 @@ static int __insert_package_info(sqlite3 *db, manifest_x *mfx) __BIND_TEXT(db, stmt, idx++, mfx->root_path); __BIND_TEXT(db, stmt, idx++, mfx->external_path); __BIND_TEXT(db, stmt, idx++, mfx->csc_path); - __BIND_TEXT(db, stmt, idx++, mfx->support_mode); + __BIND_TEXT(db, stmt, idx++, + mfx->support_mode ? mfx->support_mode : "0"); __BIND_TEXT(db, stmt, idx++, __get_bool(mfx->support_disable, false)); ret = sqlite3_step(stmt); -- 2.7.4