-/*
- char *base_query = "select "
- "type, layout, caller_pkgname, launch_pkgname, image_path, group_id, priv_id, "
- "tag, b_text, b_key, b_format_args, num_format_args, "
- "text_domain, text_dir, time, insert_time, args, group_args, "
- "b_execute_option, b_service_responding, b_service_single_launch, b_service_multi_launch, "
- "sound_type, sound_path, vibration_type, vibration_path, led_operation, led_argb, led_on_ms, led_off_ms, "
- "flags_for_property, display_applist, progress_size, progress_percentage "
- "from noti_list ";
-
- if (pkgname != NULL) {
- query = sqlite3_mprintf("%s where caller_pkgname = '%s' and tag = '%s'",
- base_query ,pkgname, tag);
- } else {
- query = sqlite3_mprintf("%s where tag = '%s'", base_query, tag);
- }
- if (query == NULL) {
- ret = NOTIFICATION_ERROR_OUT_OF_MEMORY;
- goto err;
- }