pgsql: In CREATE CONVERSION, test that the given function is a valid - Mailing list pgsql-committers

From heikki@postgresql.org (Heikki Linnakangas)
Subject pgsql: In CREATE CONVERSION, test that the given function is a valid
Date
Msg-id 20090227163547.93E627559ED@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
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:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/commands:
        conversioncmds.c (r1.16.4.1 -> r1.16.4.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/conversioncmds.c?r1=1.16.4.1&r2=1.16.4.2)

pgsql-committers by date:

Previous
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: In CREATE CONVERSION, test that the given function is a valid
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: In CREATE CONVERSION, test that the given function is a valid