From: Alvaro Herrera Date: Sat, 16 Oct 2010 04:11:38 +0000 (-0300) Subject: Document that translate() removes characters in "from" that don't have X-Git-Tag: REL9_1_ALPHA2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33ae03f4003adb27651d00688016d1c4a979686f;p=thirdparty%2Fpostgresql.git Document that translate() removes characters in "from" that don't have a corresponding "to" character. Author: Josh Kupershmidt --- diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index 5d422afef26..183b72cda48 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1866,10 +1866,12 @@ Any character in string that matches a character in the from set is replaced by the corresponding character in the to - set + set. If from is longer than + to, occurrences of the extra characters in + from are removed. - translate('12345', '14', 'ax') - a23x5 + translate('12345', '143', 'ax') + a2x5