This commit is contained in:
sunkaixuan
2017-07-19 00:53:06 +08:00
parent 5aa1ff7de8
commit c233c1cc43

View File

@@ -112,11 +112,11 @@ namespace SqlSugar
public virtual bool IsAnySystemTablePermissions()
{
string sql = this.CheckSystemTablePermissionsSql;
this.Context.Ado.CheckConnection();
try
{
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
this.Context.Ado.IsEnableLogEvent = false;
this.Context.Ado.CheckConnection();
this.Context.Ado.ExecuteCommand(sql);
this.Context.Ado.IsEnableLogEvent = oldIsEnableLog;
return true;