In CREATE CONVERSION, test that the given function is a valid conversion
authorHeikki Linnakangas <[email protected]>
Fri, 27 Feb 2009 16:35:31 +0000 (16:35 +0000)
committerHeikki Linnakangas <[email protected]>
Fri, 27 Feb 2009 16:35:31 +0000 (16:35 +0000)
commit109177fe3a5f3609b9adae98ead7517156305ef1
tree08652c5bfc400792f9022afe2ddf0dcfdf715340
parent29d033f926f2c75e75599d5c51657baa5d2022a3
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