Skip to content

Commit 40a5de1

Browse files
committed
u
1 parent 6c8644d commit 40a5de1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/SmartSql/Command/PreparedCommand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ public IDbCommand Prepare(IDbConnectionSession dbSession, RequestContext context
5858

5959
if (!context.RequestParameters.Contains(propertyName))
6060
{
61+
if (_logger.IsEnabled(LogLevel.Warning))
62+
{
63+
_logger.LogWarning($"PreparedCommand.Prepare:StatementKey:{context.StatementKey}:can not find ParamterName:{propertyName}!");
64+
}
6165
return match.Value;
6266
}
6367
var dbParameter = context.RequestParameters.Get(propertyName);

src/SmartSql/SmartSql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<PackageProjectUrl>https://github.com/Ahoo-Wang/SmartSql</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/Ahoo-Wang/SmartSql</RepositoryUrl>
1313
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
14-
<Version>3.5.13</Version>
14+
<Version>3.5.14</Version>
1515
<PackageTags>orm sql read-write-separation cache redis dotnet-core cross-platform high-performance distributed-computing zookeeper</PackageTags>
1616
<PackageReleaseNotes>
17-
1. fixed DataSourceFilter error
17+
1. add PreparedCommand logger for [No hit parameter]
1818
</PackageReleaseNotes>
1919
<PackageIconUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartSql/master/SmartSql.png</PackageIconUrl>
2020
<PackageLicenseUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartSql/master/LICENSE</PackageLicenseUrl>

0 commit comments

Comments
 (0)