From a1633b5a54456b2b152abef24db19ae3587c8dae Mon Sep 17 00:00:00 2001 From: 7ym0n Date: Fri, 27 Sep 2019 04:31:27 -0400 Subject: [PATCH 1/2] fixed start task failed --- src/manage_sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manage_sql.c b/src/manage_sql.c index 1fc9582bb..c03e800b4 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -38041,7 +38041,7 @@ init_otp_pref_iterator (iterator_t* iterator, " WHERE config_preferences.config = %llu" " AND config_preferences.type = '%s'" " AND (config_preferences.name = nvt_preferences.name" - " OR config_preferences.name LIKE 'timeout.%')" + " OR config_preferences.name LIKE 'timeout.%%')" " AND config_preferences.name != 'max_checks'" " AND config_preferences.name != 'max_hosts'" " UNION" diff --git a/src/manage_sql.c b/src/manage_sql.c index 99ee86f..3ce495c 100644 --- a/src/manage_sql.c +++ b/src/manage_sql.c @@ -28550,7 +28550,7 @@ report_port_count (report_t report) { return sql_int ("SELECT count (DISTINCT port) FROM results" " WHERE report = %llu AND port != ''" - " AND port NOT %s 'general/%';", + " AND port NOT %s 'general/%%';", report, sql_ilike_op ()); }