mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update odbc bug
This commit is contained in:
parent
c1a3d9da6f
commit
623d435858
@ -66,14 +66,14 @@ namespace SqlSugar.Odbc
|
|||||||
{
|
{
|
||||||
if (this.Context.Ado.Transaction != null)
|
if (this.Context.Ado.Transaction != null)
|
||||||
{
|
{
|
||||||
return await GetScalarAsync(sql, parameters);
|
return await base.GetScalarAsync(sql, parameters);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
this.Context.Ado.BeginTran();
|
this.Context.Ado.BeginTran();
|
||||||
var result =await GetScalarAsync(sql, parameters);
|
var result =await base.GetScalarAsync(sql, parameters);
|
||||||
this.Context.Ado.CommitTran();
|
this.Context.Ado.CommitTran();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user