|
1 |
| -<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.399 2007/10/07 01:13:30 alvherre Exp $ --> |
| 1 | +<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.400 2007/10/11 02:43:55 momjian Exp $ --> |
2 | 2 |
|
3 | 3 | <chapter id="functions">
|
4 | 4 | <title>Functions and Operators</title>
|
|
1362 | 1362 | Also there are some pre-defined conversions. See <xref
|
1363 | 1363 | linkend="conversion-names"> for available conversions.
|
1364 | 1364 | </entry>
|
1365 |
| - <entry><literal>convert( 'text_in_utf8', 'UTF8', 'LATIN1')</literal></entry> |
| 1365 | + <entry><literal>convert('text_in_utf8', 'UTF8', 'LATIN1')</literal></entry> |
1366 | 1366 | <entry><literal>text_in_utf8</literal> represented in ISO 8859-1 encoding</entry>
|
1367 | 1367 | </row>
|
1368 | 1368 |
|
|
1377 | 1377 | is specified by <parameter>src_encoding</parameter>. The
|
1378 | 1378 | <parameter>string</parameter> must be valid in this encoding.
|
1379 | 1379 | </entry>
|
1380 |
| - <entry><literal>convert_from( 'text_in_utf8', 'UTF8')</literal></entry> |
| 1380 | + <entry><literal>convert_from('text_in_utf8', 'UTF8')</literal></entry> |
1381 | 1381 | <entry><literal>text_in_utf8</literal> represented in the current database encoding</entry>
|
1382 | 1382 | </row>
|
1383 | 1383 |
|
|
1390 | 1390 | <entry>
|
1391 | 1391 | Convert string to <parameter>dest_encoding</parameter>.
|
1392 | 1392 | </entry>
|
1393 |
| - <entry><literal>convert_to( 'some text', 'UTF8')</literal></entry> |
| 1393 | + <entry><literal>convert_to('some text', 'UTF8')</literal></entry> |
1394 | 1394 | <entry><literal>some text</literal> represented in the UTF8 encoding</entry>
|
1395 | 1395 | </row>
|
1396 | 1396 |
|
|
1420 | 1420 | <literal>Escape</> merely outputs null bytes as <literal>\000</> and
|
1421 | 1421 | doubles backslashes.
|
1422 | 1422 | </entry>
|
1423 |
| - <entry><literal>encode( E'123\\000\\001', 'base64')</literal></entry> |
| 1423 | + <entry><literal>encode(E'123\\000\\001', 'base64')</literal></entry> |
1424 | 1424 | <entry><literal>MTIzAAE=</literal></entry>
|
1425 | 1425 | </row>
|
1426 | 1426 |
|
|
1535 | 1535 | in an <acronym>SQL</acronym> statement string.
|
1536 | 1536 | Embedded single-quotes and backslashes are properly doubled.
|
1537 | 1537 | </entry>
|
1538 |
| - <entry><literal>quote_literal( 'O\'Reilly')</literal></entry> |
| 1538 | + <entry><literal>quote_literal('O\'Reilly')</literal></entry> |
1539 | 1539 | <entry><literal>'O''Reilly'</literal></entry>
|
1540 | 1540 | </row>
|
1541 | 1541 |
|
|
1603 | 1603 | <entry>Replace all occurrences in <parameter>string</parameter> of substring
|
1604 | 1604 | <parameter>from</parameter> with substring <parameter>to</parameter>
|
1605 | 1605 | </entry>
|
1606 |
| - <entry><literal>replace( 'abcdefabcdef', 'cd', 'XX')</literal></entry> |
| 1606 | + <entry><literal>replace('abcdefabcdef', 'cd', 'XX')</literal></entry> |
1607 | 1607 | <entry><literal>abXXefabXXef</literal></entry>
|
1608 | 1608 | </row>
|
1609 | 1609 |
|
|
2592 | 2592 | <entry><literal><function>octet_length</function>(<parameter>string</parameter>)</literal></entry>
|
2593 | 2593 | <entry><type>int</type></entry>
|
2594 | 2594 | <entry>Number of bytes in binary string</entry>
|
2595 |
| - <entry><literal>octet_length( E'jo\\000se'::bytea)</literal></entry> |
| 2595 | + <entry><literal>octet_length(E'jo\\000se'::bytea)</literal></entry> |
2596 | 2596 | <entry><literal>5</literal></entry>
|
2597 | 2597 | </row>
|
2598 | 2598 |
|
|
0 commit comments