GList **appcontrol)
{
static const char query_raw[] =
- "SELECT app_control, visibility FROM package_app_app_control "
- "WHERE app_id=%Q";
+ "SELECT app_control, visibility, app_control_id "
+ "FROM package_app_app_control WHERE app_id=%Q";
int ret;
+ int idx;
char *query;
sqlite3_stmt *stmt;
char *str;
str = NULL;
visibility = NULL;
id = NULL;
- _save_column_str(stmt, 0, &str);
- _save_column_str(stmt, 0, &visibility);
- _save_column_str(stmt, 0, &id);
+ idx = 0;
+ _save_column_str(stmt, idx++, &str);
+ _save_column_str(stmt, idx++, &visibility);
+ _save_column_str(stmt, idx++, &id);
/* TODO: revise */
__parse_appcontrol(appcontrol, str, visibility, id);
free(str);