Update odbc bug

This commit is contained in:
sunkaixuan 2024-07-26 16:53:20 +08:00
parent c1a3d9da6f
commit 623d435858

View File

@ -66,14 +66,14 @@ namespace SqlSugar.Odbc
{
if (this.Context.Ado.Transaction != null)
{
return await GetScalarAsync(sql, parameters);
return await base.GetScalarAsync(sql, parameters);
}
else
{
try
{
this.Context.Ado.BeginTran();
var result =await GetScalarAsync(sql, parameters);
var result =await base.GetScalarAsync(sql, parameters);
this.Context.Ado.CommitTran();
return result;
}