In CREATE CONVERSION, test that the given function is a valid conversion
commitce3816ced8d62b35cf42e52764785ed6afa5225e
authorheikki <heikki>
Fri, 27 Feb 2009 16:35:26 +0000 (27 16:35 +0000)
committerheikki <heikki>
Fri, 27 Feb 2009 16:35:26 +0000 (27 16:35 +0000)
tree89ab7bfd0d6f4331c57c9749c1ccf4952e12b339
parent83b45e47cbc99d75617db276ade529c685b7d1cd
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