Skip to content

Commit 2597cd4

Browse files
Update sql to use defaults.
1 parent 0bc1f61 commit 2597cd4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/columns/sql/default

web/pgadmin/browser/server_groups/servers/databases/schemas/tables/templates/columns/sql/default/nodes.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
SELECT DISTINCT att.attname as name, att.attnum as OID, pg_catalog.format_type(ty.oid,NULL) AS datatype,
22
att.attnotnull as not_null,
3-
CASE WHEN att.atthasdef OR att.attidentity != '' THEN True
4-
WHEN ty.typdefault IS NOT NULL THEN True
3+
CASE WHEN att.atthasdef OR att.attidentity != '' OR ty.typdefault IS NOT NULL THEN True
54
ELSE False END as has_default_val, des.description, seq.seqtypid
65
FROM pg_catalog.pg_attribute att
76
JOIN pg_catalog.pg_type ty ON ty.oid=atttypid

0 commit comments

Comments
 (0)