Обсуждение: pgsql: Fix hstore_plpython for Python 3.

Поиск
Список
Период
Сортировка

pgsql: Fix hstore_plpython for Python 3.

От
Tom Lane
Дата:
Fix hstore_plpython for Python 3.

In commit d51924be8, I overlooked the need to provide linkage for
PLyUnicode_FromStringAndSize, because that's only used (and indeed
only exists) in Python 3 builds.

In light of the need to #if this item, rearrange the ordering of
the code related to each function pointer, so as not to need more
#if's than absolutely necessary.

Per buildfarm.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/490ed1ebb9b26fb342a1e3240107092e9c5aec02

Modified Files
--------------
contrib/hstore_plpython/hstore_plpython.c | 34 +++++++++++++++++++------------
1 file changed, 21 insertions(+), 13 deletions(-)