*修复ODBC参数化问题

This commit is contained in:
guoshun.du 2023-07-19 19:51:22 +08:00
parent c05aba0e3b
commit bc33c7a612
2 changed files with 4 additions and 6 deletions

View File

@ -206,11 +206,10 @@ namespace SqlSugar.OceanBaseForOracle
//通过正则匹配,为顺序输出,相同也会重复匹配
Regex parametersRegx = new Regex(reg);
MatchCollection matches = parametersRegx.Matches(sql);
for(int index = 0;index< parameters.Length; index++)
foreach (Match pMatch in matches)
{
Match pMatch = matches[index];
SugarParameter mP = parameters.FirstOrDefault(m => m.ParameterName == pMatch.Value);
if (mP != null)
if (mP != null)
{
orderParameters.Add(mP);
}

View File

@ -1,9 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>netstandard2.1</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>