Browse Source

Update kdbndp

pull/31/head
sunkaixuan 2 years ago
parent
commit
89cd65383f
  1. 5
      Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbBind/KdbndpBind.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Realization/Kdbndp/DbMaintenance/KdbndpDbMaintenance.cs

5
Src/Asp.NetCore2/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)

2
Src/Asp.NetCore2/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

Loading…
Cancel
Save