Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b92767d

Browse files
committed
Update "encode" documentation to mention that 'escape' only changes null
bytes and backslashes, remove "ASCII" mention. Backpatch to 8.2.X.
1 parent 298de77 commit b92767d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/func.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.368 2007/02/20 18:18:05 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.369 2007/02/20 19:59:04 momjian Exp $ -->
22

33
<chapter id="functions">
44
<title>Functions and Operators</title>
@@ -1356,8 +1356,10 @@
13561356
</entry>
13571357
<entry><type>text</type></entry>
13581358
<entry>
1359-
Encode binary data to <acronym>ASCII</acronym>-only representation. Supported
1359+
Encode binary data to different representation. Supported
13601360
types are: <literal>base64</>, <literal>hex</>, <literal>escape</>.
1361+
<literal>Escape</> merely outputs null bytes as <literal>\000</> and
1362+
doubles backslashes.
13611363
</entry>
13621364
<entry><literal>encode( E'123\\000\\001', 'base64')</literal></entry>
13631365
<entry><literal>MTIzAAE=</literal></entry>

0 commit comments

Comments
 (0)