mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
*修复ODBC参数化问题
This commit is contained in:
parent
c05aba0e3b
commit
bc33c7a612
@ -206,9 +206,8 @@ namespace SqlSugar.OceanBaseForOracle
|
|||||||
//通过正则匹配,为顺序输出,相同也会重复匹配
|
//通过正则匹配,为顺序输出,相同也会重复匹配
|
||||||
Regex parametersRegx = new Regex(reg);
|
Regex parametersRegx = new Regex(reg);
|
||||||
MatchCollection matches = parametersRegx.Matches(sql);
|
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);
|
SugarParameter mP = parameters.FirstOrDefault(m => m.ParameterName == pMatch.Value);
|
||||||
if (mP != null)
|
if (mP != null)
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user