This commit is contained in:
sunkaixuan 2022-10-11 10:48:14 +08:00
parent fdb272149d
commit ca3099f26a

View File

@ -243,7 +243,7 @@ namespace SqlSugar
public override bool IsAnyColumn(string tableName, string columnName, bool isCache = true)
{
var sql =
$"select count(*) from information_schema.columns WHERE table_schema = 'public' and UPPER(table_name) = '{tableName.ToLower()}' and UPPER(column_name) = '{columnName.ToLower()}'";
$"select count(*) from information_schema.columns WHERE table_schema = 'public' and UPPER(table_name) = '{tableName.ToUpper()}' and UPPER(column_name) = '{columnName.ToUpper()}'";
return this.Context.Ado.GetInt(sql) > 0;
}