Skip to content

Commit

Permalink
Issue #19 - use pg_get_expr() rather than pg_attrdef.adsrc, as the la…
Browse files Browse the repository at this point in the history
…tter was removed in PostgreSQL 12
  • Loading branch information
cbbrowne committed Mar 3, 2020
1 parent efbe6a2 commit f4d53c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgresql_autodoc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ sub info_collect {
AND relkind = 'S') THEN
NULL
ELSE
adsrc
pg_get_expr(adbin, adrelid)
END as column_default
, pg_catalog.col_description(attrelid, attnum) as column_description
, attnum
Expand Down

0 comments on commit f4d53c1

Please sign in to comment.