From 3cd070e211513bf433df5e8bec7b295241c1d497 Mon Sep 17 00:00:00 2001 From: Bare7a Date: Sat, 6 Apr 2024 17:21:06 +0300 Subject: [PATCH] Update columns.js --- .../dbgate-plugin-postgres/src/backend/sql/columns.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/dbgate-plugin-postgres/src/backend/sql/columns.js b/plugins/dbgate-plugin-postgres/src/backend/sql/columns.js index 66187251a..943fd4770 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/sql/columns.js +++ b/plugins/dbgate-plugin-postgres/src/backend/sql/columns.js @@ -4,10 +4,10 @@ select table_name as "pure_name", column_name as "column_name", is_nullable as "is_nullable", - case - when (data_type = 'USER-DEFINED' OR data_type = 'ARRAY') then udt_name::regtype::text - else data_type - end + case + 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", numeric_precision as "numeric_precision", @@ -24,4 +24,4 @@ where ('views:' || table_schema || '.' || table_name) =OBJECT_ID_CONDITION ) order by ordinal_position -`; \ No newline at end of file +`;