In CREATE CONVERSION, test that the given function is a valid conversion
authorHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:53 +0000 (16:35 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:53 +0000 (16:35 +0000)
commit573e2ca2d52551c677534ed0df1f3e2fe73863ff
tree200a758fa37d46d6b07bb162ad60e75526181615
parentc7317767c731c2105dd2a9a73e4efd102c0a9f2c
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.
src/backend/commands/conversioncmds.c