In CREATE CONVERSION, test that the given function is a valid conversion
authorHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:26 +0000 (16:35 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:26 +0000 (16:35 +0000)
commitcbe3dc9fc260d86abcfb15551b836ec32957a4c2
treedc3b64413d0b7c98d0003ae562a1b180a2de164e
parentdf527055d01d04894ce98e45e842695d0a27643e
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