Update "encode" documentation to mention that 'escape' only changes null

bytes and backslashes, remove "ASCII" mention.  Backpatch to 8.2.X.
This commit is contained in:
Bruce Momjian 2007-02-20 19:59:18 +00:00
parent 6f9027372b
commit 664009ecb1

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.347.2.5 2007/02/20 14:05:02 momjian Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.347.2.6 2007/02/20 19:59:18 momjian Exp $ -->
<chapter id="functions">
<title>Functions and Operators</title>
@ -1326,8 +1326,10 @@
</entry>
<entry><type>text</type></entry>
<entry>
Encode binary data to <acronym>ASCII</acronym>-only representation. Supported
Encode binary data to different representation. Supported
types are: <literal>base64</>, <literal>hex</>, <literal>escape</>.
<literal>Escape</> merely outputs null bytes as <literal>\000</> and
doubles backslashes.
</entry>
<entry><literal>encode( E'123\\000\\001', 'base64')</literal></entry>
<entry><literal>MTIzAAE=</literal></entry>