From e10658063e07c82a857f4626f847ce745d6dad7d Mon Sep 17 00:00:00 2001 From: Mateus Viegas Date: Mon, 29 Mar 2021 18:08:10 +0100 Subject: [PATCH] Fixed SQL content filter on IMonitoringApi.PostgreSql.cs --- src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs b/src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs index ed5ee54..5aa182d 100644 --- a/src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs +++ b/src/DotNetCore.CAP.PostgreSql/IMonitoringApi.PostgreSql.cs @@ -81,7 +81,7 @@ namespace DotNetCore.CAP.PostgreSql if (!string.IsNullOrEmpty(queryDto.Group)) where += " and Lower(\"Group\") = Lower(@Group)"; - if (!string.IsNullOrEmpty(queryDto.Content)) where += " and \"Content\" ILike concat('%',@Content,'%')"; + if (!string.IsNullOrEmpty(queryDto.Content)) where += " and \"Content\" ILike @Content"; var sqlQuery = $"select * from {tableName} where 1=1 {where} order by \"Added\" desc offset @Offset limit @Limit";