Skip to content

Commit 9286568

Browse files
committed
Doc: fix documentation example for bytea hex output format.
Per report from rsindlin Discussion: https://postgr.es/m/167907221210.1803488.5939223864945604536@wrigleys.postgresql.org
1 parent 8f83ce8 commit 9286568

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,12 @@ SELECT b, char_length(b) FROM test2;
13751375
<para>
13761376
Example:
13771377
<programlisting>
1378-
SELECT '\xDEADBEEF';
1378+
SET bytea_output = 'hex';
1379+
1380+
SELECT '\xDEADBEEF'::bytea;
1381+
bytea
1382+
------------
1383+
\xdeadbeef
13791384
</programlisting>
13801385
</para>
13811386
</sect2>

0 commit comments

Comments
 (0)