mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 10:49:20 +08:00
-
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user