In CREATE CONVERSION, test that the given function is a valid conversion
authorHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:42 +0000 (16:35 +0000)
committerHeikki Linnakangas <heikki@enterprisedb.com>
Fri, 27 Feb 2009 16:35:42 +0000 (16:35 +0000)
commit659223d34f0257cb274b76abf53c276e989433cd
tree1a36f98505619941aa5e1dfc56031009af714ef2
parent003b7de5c55259cc228ae0949e669569a4c2d258
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