]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr_pgsql cel_pgsql res_config_pgsql: compatibility with PostgreSQL 12
authorChristoph Moench-Tegeder <cmt@burggraben.net>
Tue, 8 Oct 2019 18:40:30 +0000 (20:40 +0200)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 14 Oct 2019 10:07:15 +0000 (05:07 -0500)
commit6c54bd704e920a51ff0b537165a6a131c6316be3
tree2408b103eef8fedf581f6b27faaef69e9607df09
parentff293d0ff05e5e3b9b7c6828d310784290388dea
cdr_pgsql cel_pgsql res_config_pgsql: compatibility with PostgreSQL 12

PostgreSQL 12 finally removed column adsrc from table pg_catalog.pg_attrdef
(column default values), which has been deprecated since version 8.0.
Since then, the official/correct/supported way to retrieve the column
default value from the catalog is function pg_catalog.pg_get_expr().

This change breaks compatibility with pre-8.0 PostgreSQL servers,
but has reached end-of-support more than a decade ago.
cdr_pgsql and res_config_pgsql still have support for pre-7.3
servers, but cleaning that up is perhaps a topic for a major release,
not this bugfix.

ASTERISK-28571

Change-Id: I834cb3addf1937e19e87ede140bdd16cea531ebe
cdr/cdr_pgsql.c
cel/cel_pgsql.c
res/res_config_pgsql.c