Skip to content

Commit a2b35b3

Browse files
Fixed an issue where the query tool data grid did not respect the default value for columns of domain type when the domain had a default value. #8483
1 parent f250f5d commit a2b35b3

1 file changed

Lines changed: 1 addition & 1 deletion

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +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
3+
CASE WHEN att.atthasdef OR att.attidentity != '' OR ty.typdefault IS NOT NULL THEN True
44
ELSE False END as has_default_val, des.description, seq.seqtypid
55
FROM pg_catalog.pg_attribute att
66
JOIN pg_catalog.pg_type ty ON ty.oid=atttypid

0 commit comments

Comments
 (0)