Document that translate() removes characters in "from" that don't have
authorAlvaro Herrera
Sat, 16 Oct 2010 04:11:38 +0000 (01:11 -0300)
committerAlvaro Herrera
Sat, 16 Oct 2010 04:15:10 +0000 (01:15 -0300)
a corresponding "to" character.

Author: Josh Kupershmidt

doc/src/sgml/func.sgml

index 5d422afef26b2d873859493ee9a71a56575c3366..183b72cda48476db49867bd1eea364734052e627 100644 (file)
         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