Browse Source

*修复ODBC参数化问题

pull/41/head
guoshun.du 1 year ago
parent
commit
bc33c7a612
  1. 3
      Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs
  2. 3
      Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj

3
Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/OceanBase/OceanBaseForOracleProvider.cs

@ -206,9 +206,8 @@ 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)
{

3
Src/Asp.NetCore2/SqlSugar.OceanBaseForOracle/SqlSugar.OceanBaseForOracleCore.csproj

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

Loading…
Cancel
Save