Обсуждение: pgsql: In CREATE CONVERSION, test that the given function is a valid

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

pgsql: In CREATE CONVERSION, test that the given function is a valid

От
heikki@postgresql.org (Heikki Linnakangas)
Дата:
Log Message:
-----------
In CREATE CONVERSION, test that the given function is a valid conversion
function for the specified source and destination encodings. We do that by
calling the function with an empty string. If it can't perform the requested
conversion, it will throw an error.

Backport to 7.4 - 8.3. Per bug report #4680 by Denis Afonin.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        conversioncmds.c (r1.11.4.1 -> r1.11.4.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/conversioncmds.c?r1=1.11.4.1&r2=1.11.4.2)