From: Kees Monshouwer Date: Tue, 2 Feb 2021 16:32:41 +0000 (+0100) Subject: auth: fix gpgsql 'test_search_rr_case_insensitive' api test X-Git-Tag: dnsdist-1.6.0-alpha2~23^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68f7bb8d4c8abadccc7248eabb2bb23c372cc243;p=thirdparty%2Fpdns.git auth: fix gpgsql 'test_search_rr_case_insensitive' api test --- diff --git a/modules/gpgsqlbackend/gpgsqlbackend.cc b/modules/gpgsqlbackend/gpgsqlbackend.cc index 4ea3f69277..273cb15364 100644 --- a/modules/gpgsqlbackend/gpgsqlbackend.cc +++ b/modules/gpgsqlbackend/gpgsqlbackend.cc @@ -164,8 +164,8 @@ public: declare(suffix, "insert-comment-query", "", "INSERT INTO comments (domain_id, name, type, modified_at, account, comment) VALUES ($1, $2, $3, $4, $5, $6)"); declare(suffix, "delete-comment-rrset-query", "", "DELETE FROM comments WHERE domain_id=$1 AND name=$2 AND type=$3"); declare(suffix, "delete-comments-query", "", "DELETE FROM comments WHERE domain_id=$1"); - declare(suffix, "search-records-query", "", record_query+" name LIKE $1 OR content LIKE $2 LIMIT $3"); - declare(suffix, "search-comments-query", "", "SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE name LIKE $1 OR comment LIKE $2 LIMIT $3"); + declare(suffix, "search-records-query", "", record_query+" name ILIKE $1 OR content ILIKE $2 LIMIT $3"); + declare(suffix, "search-comments-query", "", "SELECT domain_id,name,type,modified_at,account,comment FROM comments WHERE name ILIKE $1 OR comment ILIKE $2 LIMIT $3"); }