From 2c8073af210789b56aa2caa590e10635d57486ce Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 30 Jan 2023 18:29:23 +0800 Subject: [PATCH] Synchronization code --- Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs | 5 +---- .../Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs index 75e0f05bc..b325c6eae 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs @@ -8,10 +8,7 @@ namespace SqlSugar { public override string GetPropertyTypeName(string dbTypeName) { - if (SugarCompatible.IsFramework) - { - dbTypeName = dbTypeName.Replace("pg_catalog.", ""); - } + dbTypeName = dbTypeName.Replace("pg_catalog.", ""); dbTypeName = dbTypeName.ToLower(); var propertyTypes = MappingTypes.Where(it => it.Value.ToString().ToLower() == dbTypeName || it.Key.ToLower() == dbTypeName); if (propertyTypes == null) diff --git a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs index e848d2649..c14ad6d09 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs @@ -30,7 +30,7 @@ namespace SqlSugar then true else false end as IsIdentity, case when UPPER(pcolumn.is_nullable) = 'YES' then true else false end as IsNullable - from (select * from sys_tables where UPPER(tablename) = UPPER('{{0}}') and schemaname='{GetSchema()}') ptables inner join sys_class pclass + from (select * from sys_tables where UPPER(tablename) = UPPER('{{0}}') and lower(schemaname)='{GetSchema()}') ptables inner join sys_class pclass on ptables.tablename = pclass.relname inner join (SELECT * FROM information_schema.columns ) pcolumn on pcolumn.table_name = ptables.tablename