mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 pgsql dbfirst 未处理数组类型生成的问题;
This commit is contained in:
		@@ -232,7 +232,7 @@ case when a.atttypmod > 0 and a.atttypmod < 32767 then a.atttypmod - 4 else a.at
 | 
			
		||||
case when t.typelem = 0 then t.typname else t2.typname end,
 | 
			
		||||
case when a.attnotnull then 0 else 1 end as is_nullable,
 | 
			
		||||
--e.adsrc as is_identity, pg12以下
 | 
			
		||||
(select sys_get_expr(adbin, adrelid) from sys_attrdef where adrelid = e.adrelid limit 1) is_identity,
 | 
			
		||||
(select sys_get_expr(adbin, adrelid) from sys_attrdef where adrelid = e.adrelid and adnum = e.adnum limit 1) is_identity,
 | 
			
		||||
d.description as comment,
 | 
			
		||||
a.attndims,
 | 
			
		||||
case when t.typelem = 0 then t.typtype else t2.typtype end,
 | 
			
		||||
@@ -286,6 +286,7 @@ where {loc8.ToString().Replace("a.table_name", "ns.nspname || '.' || c.relname")
 | 
			
		||||
                            case "bpchar": case "varchar": case "bytea": case "bit": case "varbit": sqlType += $"({max_length})"; break;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    if (attndims > 0) type += "[]";
 | 
			
		||||
 | 
			
		||||
                    loc3[object_id].Add(column, new DbColumnInfo
 | 
			
		||||
                    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user