mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 达梦 DbFirst 无法识别字段是否为主键的问题;
This commit is contained in:
		@@ -407,7 +407,7 @@ a.table_owner || '.' || a.table_name,
 | 
			
		||||
c.column_name,
 | 
			
		||||
c.index_name,
 | 
			
		||||
case when a.uniqueness = 'UNIQUE' then 1 else 0 end,
 | 
			
		||||
case when exists(select 1 from all_constraints where constraint_name = a.index_name and constraint_type = 'P') then 1 else 0 end,
 | 
			
		||||
case when exists(select 1 from all_constraints where index_name = a.index_name and constraint_type = 'P') then 1 else 0 end,
 | 
			
		||||
0,
 | 
			
		||||
case when c.descend = 'DESC' then 1 else 0 end,
 | 
			
		||||
c.column_position
 | 
			
		||||
 
 | 
			
		||||
@@ -407,7 +407,7 @@ a.table_owner || '.' || a.table_name,
 | 
			
		||||
c.column_name,
 | 
			
		||||
c.index_name,
 | 
			
		||||
case when a.uniqueness = 'UNIQUE' then 1 else 0 end,
 | 
			
		||||
case when exists(select 1 from all_constraints where constraint_name = a.index_name and constraint_type = 'P') then 1 else 0 end,
 | 
			
		||||
case when exists(select 1 from all_constraints where index_name = a.index_name and constraint_type = 'P') then 1 else 0 end,
 | 
			
		||||
0,
 | 
			
		||||
case when c.descend = 'DESC' then 1 else 0 end,
 | 
			
		||||
c.column_position
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user