- 修复 达梦 DbFirst 无法识别字段是否为主键的问题;

This commit is contained in:
28810 2020-08-13 10:25:58 +08:00
parent 5f645f194f
commit 4650af0e00
2 changed files with 2 additions and 2 deletions

View File

@ -407,7 +407,7 @@ a.table_owner || '.' || a.table_name,
c.column_name, c.column_name,
c.index_name, c.index_name,
case when a.uniqueness = 'UNIQUE' then 1 else 0 end, 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, 0,
case when c.descend = 'DESC' then 1 else 0 end, case when c.descend = 'DESC' then 1 else 0 end,
c.column_position c.column_position

View File

@ -407,7 +407,7 @@ a.table_owner || '.' || a.table_name,
c.column_name, c.column_name,
c.index_name, c.index_name,
case when a.uniqueness = 'UNIQUE' then 1 else 0 end, 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, 0,
case when c.descend = 'DESC' then 1 else 0 end, case when c.descend = 'DESC' then 1 else 0 end,
c.column_position c.column_position