tdf#128111: "adsrc" doesn't exist from Postgresql 12
authorJulien Nabet <serval2412@yahoo.fr>
Sat, 12 Oct 2019 22:26:10 +0000 (00:26 +0200)
committerRene Engelhard <rene@debian.org>
Sat, 1 Feb 2020 14:13:43 +0000 (14:13 +0000)
commitfbbf3fb52d247208aa52ccffaf51d1c48615e38d
tree8df586e13d9dae73fb1aa9e2a41695fa80eddddd
parent4d0a3b07f4645c29154c832ac3c081a07ce0bf3c
tdf#128111: "adsrc" doesn't exist from Postgresql 12

Before Postgresql 8.0, there was only "adsrc"
then it's been deprecated
"The adsrc field is historical, and is best not used, because it does not track outside changes
 that might affect the representation of the default value.
 Reverse-compiling the adbin field (with pg_get_expr for example) is a better way to display the default value
"
and finally it's been removed with version 12

See evolution with:
- https://www.postgresql.org/docs/8/catalog-pg-attrdef.html
- https://www.postgresql.org/docs/11/catalog-pg-attrdef.html
- https://www.postgresql.org/docs/12/catalog-pg-attrdef.html

Merge with https://cgit.freedesktop.org/libreoffice/core/commit/?id=1ec93ef100bb5f6ccef91f12e28ed09feb3eb38b

Change-Id: I57e9da423a23b5a96bbb64b0e026b160e9643ab9
Reviewed-on: https://gerrit.libreoffice.org/80722
(cherry picked from commit 0c46c81e04530e8f6ce4f34195d8f0443ed8bfc3)
Reviewed-on: https://gerrit.libreoffice.org/80736
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Gbp-Pq: Name Postgresql-12-no-adsrc.diff
connectivity/source/drivers/postgresql/pq_databasemetadata.cxx
connectivity/source/drivers/postgresql/pq_statement.cxx
connectivity/source/drivers/postgresql/pq_tools.cxx
connectivity/source/drivers/postgresql/pq_tools.hxx