*修复GetScalarAsync死循环问题

This commit is contained in:
guoshun.du 2024-05-09 13:58:44 +08:00
parent 921a2d1537
commit 59867d0f9d

View File

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