In CREATE CONVERSION, test that the given function is a valid conversion
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 Feb 2009 16:35:53 +0000 (16:35 +0000)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 Feb 2009 16:35:53 +0000 (16:35 +0000)
commit17485e504d6d1c9c921e30d417002e2c281d4f42
treeef29c4e6fa19f63cfc454ae2d711fd262cb87dc2
parentcedefbdf13a1e5ed4aa2e85600340200cc07b097
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