Set app_external_path when insert package info 82/144682/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 17 Aug 2017 11:21:03 +0000 (20:21 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 17 Aug 2017 11:21:03 +0000 (20:21 +0900)
Change-Id: I8d9338c383edaa621d0ae2d29dbfd25792264648
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
parser/src/pkgmgr_parser_db.c

index 7b9d10e..27abc3f 100644 (file)
@@ -1627,7 +1627,7 @@ static int __insert_application_info(sqlite3 *db, manifest_x *mfx)
                "  app_effective_appid, app_splash_screen_display,"
                "  app_package_system, app_removable,"
                "  app_package_installed_time, app_support_ambient,"
-               "  app_setup_appid) "
+               "  app_external_path, app_setup_appid) "
                "VALUES (?, ?, "
                "  ?, LOWER(?), ?, LOWER(?), LOWER(?),"
                "  LOWER(?), LOWER(?), ?,"
@@ -1643,7 +1643,7 @@ static int __insert_application_info(sqlite3 *db, manifest_x *mfx)
                "  ?, LOWER(?),"
                "  LOWER(?), LOWER(?),"
                "  ?, LOWER(?),"
-               "  ?)";
+               "  ?, ?)";
        int ret;
        sqlite3_stmt *stmt;
        int idx;
@@ -1718,6 +1718,7 @@ static int __insert_application_info(sqlite3 *db, manifest_x *mfx)
                __BIND_TEXT(db, stmt, idx++, mfx->installed_time);
                __BIND_TEXT(db, stmt, idx++,
                                __get_bool(app->support_ambient, false));
+               __BIND_TEXT(db, stmt, idx++, mfx->external_path);
                __BIND_TEXT(db, stmt, idx++, app->setup_appid);
 
                ret = sqlite3_step(stmt);