Skip to content

Commit a2cce84

Browse files
committed
Update psql docs for recent octal-only string behavior.
1 parent f13c132 commit a2cce84

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

doc/src/sgml/ref/psql-ref.sgml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.136 2005/05/29 03:32:18 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.137 2005/05/30 15:24:23 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -589,11 +589,8 @@ testdb=&gt;
589589
single quote. To include a single quote into such an argument,
590590
precede it by a backslash. Anything contained in single quotes is
591591
furthermore subject to C-like substitutions for
592-
<literal>\n</literal> (new line), <literal>\t</literal> (tab),
593-
<literal>\</literal><replaceable>digits</replaceable>,
594-
<literal>\0</literal><replaceable>digits</replaceable>, and
595-
<literal>\0x</literal><replaceable>digits</replaceable> (the
596-
character with the given decimal, octal, or hexadecimal code).
592+
<literal>\n</literal> (new line), <literal>\t</literal> (tab), and
593+
<literal>\</literal><replaceable>digits</replaceable> (octal).
597594
</para>
598595

599596
<para>
@@ -2367,12 +2364,7 @@ testdb=&gt; <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" &lt; my_file.tx
23672364
<term><literal>%</literal><replaceable class="parameter">digits</replaceable></term>
23682365
<listitem>
23692366
<para>
2370-
The character with the indicated numeric code is substituted.
2371-
If <replaceable class="parameter">digits</replaceable> starts
2372-
with <literal>0x</literal> the rest of the characters are
2373-
interpreted as hexadecimal; otherwise if the first digit is
2374-
<literal>0</literal> the digits are interpreted as octal;
2375-
otherwise the digits are read as a decimal number.
2367+
The character with the indicated octal code is substituted.
23762368
</para>
23772369
</listitem>
23782370
</varlistentry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy