mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update tracking diff
This commit is contained in:
@@ -600,7 +600,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private void After(string sql)
|
private void After(string sql)
|
||||||
{
|
{
|
||||||
if (this.IsEnableDiffLogEvent)
|
if (this.IsEnableDiffLogEvent && !string.IsNullOrEmpty(sql))
|
||||||
{
|
{
|
||||||
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
||||||
this.Ado.IsDisableMasterSlaveSeparation = true;
|
this.Ado.IsDisableMasterSlaveSeparation = true;
|
||||||
@@ -650,7 +650,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private void Before(string sql)
|
private void Before(string sql)
|
||||||
{
|
{
|
||||||
if (this.IsEnableDiffLogEvent)
|
if (this.IsEnableDiffLogEvent&&!string.IsNullOrEmpty(sql))
|
||||||
{
|
{
|
||||||
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
var isDisableMasterSlaveSeparation = this.Ado.IsDisableMasterSlaveSeparation;
|
||||||
this.Ado.IsDisableMasterSlaveSeparation = true;
|
this.Ado.IsDisableMasterSlaveSeparation = true;
|
||||||
|
Reference in New Issue
Block a user