Skip to content

Commit 0bc1f61

Browse files
Ensure IDENTITY columns use defaults when no value is provided. #8483
1 parent 1d3e0a4 commit 0bc1f61

1 file changed

Lines changed: 1 addition & 0 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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,
33
CASE WHEN att.atthasdef OR att.attidentity != '' THEN True
4+
WHEN ty.typdefault IS NOT NULL THEN True
45
ELSE False END as has_default_val, des.description, seq.seqtypid
56
FROM pg_catalog.pg_attribute att
67
JOIN pg_catalog.pg_type ty ON ty.oid=atttypid

0 commit comments

Comments
 (0)