!52 修复GetScalarAsync死循环问题

Merge pull request !52 from Tyou/master
This commit is contained in:
阿妮亚 2024-05-09 06:06:53 +00:00 committed by Gitee
commit 0ef7118013
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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;
} }