mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update 人大金仓[SqlServer]
This commit is contained in:
parent
a72e62dc92
commit
a5dbd0b93e
@ -411,7 +411,7 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
|||||||
var sql = $"select count(*) from information_schema.tables where UPPER(table_schema)=UPPER('{GetSchema()}') and UPPER(table_type)=UPPER('BASE TABLE') and UPPER(table_name)=UPPER('{tableName.ToUpper(IsUpper)}')";
|
var sql = $"select count(*) from information_schema.tables where UPPER(table_schema)=UPPER('{GetSchema()}') and UPPER(table_type)=UPPER('BASE TABLE') and UPPER(table_name)=UPPER('{tableName.ToUpper(IsUpper)}')";
|
||||||
if (IsSqlServerModel())
|
if (IsSqlServerModel())
|
||||||
{
|
{
|
||||||
sql = $"select count(*) from information_schema.tables where pg_catalog.UPPER(table_name)=pg_catalog.UPPER('{tableName.ToUpper(IsUpper)}')";
|
sql = $"select count(*) from information_schema.tables where UPPER(table_schema)=UPPER('{GetSchema()}') and pg_catalog.UPPER(table_name)=pg_catalog.UPPER('{tableName.ToUpper(IsUpper)}')";
|
||||||
}
|
}
|
||||||
return this.Context.Ado.GetInt(sql)>0;
|
return this.Context.Ado.GetInt(sql)>0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user