mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 01:05:27 +08:00 
			
		
		
		
	- 优化 pgsql DbFirst 序列的识别,以及 pgsql10 的自增识别;
This commit is contained in:
		@@ -227,7 +227,7 @@ where ns.nspname = {0} and c.relname = {1}", tboldname ?? tbname);
 | 
			
		||||
                        sqlType = string.Concat(sqlType),
 | 
			
		||||
                        max_length = long.Parse(string.Concat(a[2])),
 | 
			
		||||
                        is_nullable = string.Concat(a[4]) == "1",
 | 
			
		||||
                        is_identity = string.Concat(a[5]).StartsWith(@"NEXTVAL('") && string.Concat(a[5]).EndsWith(@"'::text)"),
 | 
			
		||||
                        is_identity = string.Concat(a[5]).StartsWith(@"NEXTVAL('") && (string.Concat(a[5]).EndsWith(@"'::text)") || string.Concat(a[5]).EndsWith(@"')")),
 | 
			
		||||
                        attndims,
 | 
			
		||||
                        comment = string.Concat(a[7])
 | 
			
		||||
                    };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user