From f965ee0fa0509cd9684de70cc4ed5817528dcb50 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Tue, 26 Oct 2021 21:35:27 +0200 Subject: [PATCH] use contains domain name --- Apps/QueryLogsSqliteApp/App.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Apps/QueryLogsSqliteApp/App.cs b/Apps/QueryLogsSqliteApp/App.cs index 35fe6fb3..3f826903 100644 --- a/Apps/QueryLogsSqliteApp/App.cs +++ b/Apps/QueryLogsSqliteApp/App.cs @@ -461,7 +461,7 @@ CREATE TABLE IF NOT EXISTS dns_logs command.Parameters.AddWithValue("@rcode", (byte)rcode); if (qname is not null) - command.Parameters.Add(new SqliteParameter("@qname", "%"+qname+"%")); + command.Parameters.AddWithValue("@qname", "%"+qname+"%"); if (qtype is not null) command.Parameters.AddWithValue("@qtype", (ushort)qtype);