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