mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-03-19 08:25:37 +08:00
!123 一些bug修复
* fix: 数据同步、数据迁移体验优化 * fix: des加密传输sql * fix: 修复达梦字段注释显示问题 * fix: mysql timestamp 字段类型导出ddl错误修复
This commit is contained in:
@@ -60,15 +60,15 @@ select a.owner,
|
||||
a.char_col_decl_length as CHAR_MAX_LENGTH,
|
||||
a.data_precision as NUM_PRECISION,
|
||||
a.data_scale as NUM_SCALE,
|
||||
b.comments as COLUMN_COMMENT,
|
||||
b.COMMENT$ as COLUMN_COMMENT,
|
||||
a.data_default as COLUMN_DEFAULT,
|
||||
case when t.INFO2 & 0x01 = 0x01 then 1 else 0 end as IS_IDENTITY,
|
||||
case when t2.constraint_type = 'P' then 1 else 0 end as IS_PRIMARY_KEY
|
||||
from all_tab_columns a
|
||||
left join all_col_comments b
|
||||
on b.owner = (SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID))
|
||||
and b.table_name = a.table_name
|
||||
and a.column_name = b.column_name
|
||||
left join SYSCOLUMNCOMMENTS b
|
||||
on b.SCHNAME = (SELECT SF_GET_SCHEMA_NAME_BY_ID(CURRENT_SCHID))
|
||||
and b.TVNAME = a.table_name
|
||||
and a.column_name = b.COLNAME
|
||||
left join (select c1.*, c2.object_name, c2.owner
|
||||
FROM SYS.SYSCOLUMNS c1
|
||||
join SYS.all_objects c2 on c1.id = c2.object_id and c2.object_type = 'TABLE') t
|
||||
|
||||
Reference in New Issue
Block a user