mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update .net framework project
This commit is contained in:
parent
e6621064cf
commit
10386153f7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user