Fix invalid query
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 3 Mar 2021 06:35:01 +0000 (15:35 +0900)
committer김일호/Tizen Platform Lab(SR)/Engineer/삼성전자 <ilho159.kim@samsung.com>
Wed, 3 Mar 2021 08:10:34 +0000 (17:10 +0900)
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
parser/src/pkgmgr_parser_db.c

index 3dd0eda..37b6002 100644 (file)
@@ -2355,8 +2355,8 @@ API int pkgmgr_parser_update_global_app_splash_screen_display_info_in_usr_db(
        char *query = NULL;
 
        query = sqlite3_mprintf("INSERT OR REPLACE INTO package_app_info_for_uid("
-               "  appid, uid, is_splash_screen_enabled) "
-               "VALUES (%Q, %Q, Q%)", appid, uid, (flag == 1 ? "true" : "false"));
+               "  app_id, uid, is_splash_screen_enabled) "
+               "VALUES (%Q, %u, %Q)", appid, uid, (flag == 1 ? "true" : "false"));
        if (query == NULL) {
                _LOGE("Out of memory");
                return PM_PARSER_R_ERROR;