In CREATE CONVERSION, test that the given function is a valid conversion

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5c4ca3b6321794ab95487a6a6ebc23af150bf9e9
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2009-02-27T16:35:26Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/backend/commands/conversioncmds.c modified +15 −1