From 33ae03f4003adb27651d00688016d1c4a979686f Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Sat, 16 Oct 2010 01:11:38 -0300 Subject: [PATCH] Document that translate() removes characters in "from" that don't have a corresponding "to" character. Author: Josh Kupershmidt --- doc/src/sgml/func.sgml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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