mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 修复 达梦 DbFirst 无法识别字段是否为主键的问题;
This commit is contained in:
parent
5f645f194f
commit
4650af0e00
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user