Oracle DiffLog BUG

This commit is contained in:
sunkaixuna
2021-11-01 22:40:18 +08:00
parent cd71d6ebef
commit 286fb4f1b6
2 changed files with 6 additions and 6 deletions

View File

@@ -733,7 +733,7 @@ namespace SqlSugar
// return asyncInsertable;
//}
private void After(string sql, long? result)
protected void After(string sql, long? result)
{
if (this.IsEnableDiffLogEvent)
{
@@ -753,7 +753,7 @@ namespace SqlSugar
this.RemoveCacheFunc();
}
}
private void Before(string sql)
protected void Before(string sql)
{
if (this.IsEnableDiffLogEvent)
{

View File

@@ -34,7 +34,7 @@ namespace SqlSugar
var count = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : GetSeqValue(GetSeqName()).ObjToInt();
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
After(sql,result);
AutoEnd(oldIsAuto);
return result;
}
@@ -52,7 +52,7 @@ namespace SqlSugar
var count = Ado.ExecuteCommand(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : Convert.ToInt64(GetSeqValue(GetSeqName()));
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
After(sql, result);
AutoEnd(oldIsAuto);
return result;
}
@@ -70,7 +70,7 @@ namespace SqlSugar
var count = await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : GetSeqValue(GetSeqName()).ObjToInt();
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
After(sql, result);
AutoEnd(oldIsAuto);
return result;
}
@@ -88,7 +88,7 @@ namespace SqlSugar
var count = await Ado.ExecuteCommandAsync(sql, InsertBuilder.Parameters == null ? null : InsertBuilder.Parameters.ToArray());
var result = (this.GetIdentityKeys().IsNullOrEmpty() || count == 0) ? 0 : Convert.ToInt64(GetSeqValue(GetSeqName()));
this.Context.Ado.IsDisableMasterSlaveSeparation = isDisableMasterSlaveSeparation;
After(sql, result);
AutoEnd(oldIsAuto);
return result;
}