mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Merge commit '33e03bb2cf250e93f09e1a0a6a42dad620d2e565' into githubsy/SqlSugar5-indexfix
This commit is contained in:
@@ -393,7 +393,8 @@ namespace SqlSugar
|
||||
}
|
||||
public virtual bool IsAnyIndex(string indexName)
|
||||
{
|
||||
string sql = string.Format(this.IsAnyIndexSql, indexName);
|
||||
//string sql = string.Format(this.IsAnyIndexSql, indexName);
|
||||
string sql = string.Format(this.IsAnyIndexSql, indexName, this.Context.Ado.Connection.Database);
|
||||
return this.Context.Ado.GetInt(sql)>0;
|
||||
}
|
||||
public virtual bool AddRemark(EntityInfo entity)
|
||||
|
@@ -269,7 +269,7 @@ namespace SqlSugar
|
||||
{
|
||||
get
|
||||
{
|
||||
return "SELECT count(*) FROM information_schema.statistics WHERE index_name = '{0}'";
|
||||
return "SELECT count(*) FROM information_schema.statistics WHERE index_name = '{0}' and index_schema = '{1}'";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user