mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
Revert "Merge pull request #744 from Bare7a/postgresql-user-type-enhancements"
This reverts commitfdabe1eeaa
, reversing changes made to4429b1d618
.
This commit is contained in:
parent
eba5bd9c2b
commit
373a35fe65
@ -4,11 +4,7 @@ select
|
|||||||
table_name as "pure_name",
|
table_name as "pure_name",
|
||||||
column_name as "column_name",
|
column_name as "column_name",
|
||||||
is_nullable as "is_nullable",
|
is_nullable as "is_nullable",
|
||||||
case
|
data_type as "data_type",
|
||||||
when (data_type = 'USER-DEFINED' OR data_type = 'ARRAY') then udt_name::regtype::text
|
|
||||||
else data_type
|
|
||||||
end
|
|
||||||
as "data_type",
|
|
||||||
character_maximum_length as "char_max_length",
|
character_maximum_length as "char_max_length",
|
||||||
numeric_precision as "numeric_precision",
|
numeric_precision as "numeric_precision",
|
||||||
numeric_scale as "numeric_scale",
|
numeric_scale as "numeric_scale",
|
||||||
|
@ -2,7 +2,7 @@ module.exports = `
|
|||||||
select infoTables.table_schema as "schema_name", infoTables.table_name as "pure_name",
|
select infoTables.table_schema as "schema_name", infoTables.table_name as "pure_name",
|
||||||
(
|
(
|
||||||
select md5(string_agg(
|
select md5(string_agg(
|
||||||
infoColumns.column_name || '|' || case when (infoColumns.data_type = 'USER-DEFINED' OR infoColumns.data_type = 'ARRAY') then infoColumns.udt_name::regtype::text else infoColumns.data_type end || '|' || infoColumns.is_nullable::varchar(255) || '|' || coalesce(infoColumns.character_maximum_length, -1)::varchar(255)
|
infoColumns.column_name || '|' || infoColumns.data_type || '|' || infoColumns.is_nullable::varchar(255) || '|' || coalesce(infoColumns.character_maximum_length, -1)::varchar(255)
|
||||||
|| '|' || coalesce(infoColumns.numeric_precision, -1)::varchar(255) ,
|
|| '|' || coalesce(infoColumns.numeric_precision, -1)::varchar(255) ,
|
||||||
',' order by infoColumns.ordinal_position
|
',' order by infoColumns.ordinal_position
|
||||||
)) as "hash_code_columns"
|
)) as "hash_code_columns"
|
||||||
|
Loading…
Reference in New Issue
Block a user