OSDN Git Service

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