OSDN Git Service

Minor consistency improvement to the documentation on array functions.
authorNeil Conway <neilc@samurai.com>
Wed, 13 Apr 2005 00:20:10 +0000 (00:20 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 13 Apr 2005 00:20:10 +0000 (00:20 +0000)
doc/src/sgml/func.sgml

index f879664..2df0068 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.244 2005/04/01 14:25:22 momjian Exp $
+$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.245 2005/04/13 00:20:10 neilc Exp $
 PostgreSQL documentation
 -->
 
@@ -6981,7 +6981,7 @@ SELECT NULLIF(value, '(none)') ...
     </entry>
         <entry><type>text</type></entry>
         <entry>returns a text representation of array's dimensions</entry>
-        <entry><literal>array_dims(array[[1,2,3], [4,5,6]])</literal></entry>
+        <entry><literal>array_dims(ARRAY[[1,2,3], [4,5,6]])</literal></entry>
         <entry><literal>[1:2][1:3]</literal></entry>
        </row>
        <row>
@@ -7017,7 +7017,7 @@ SELECT NULLIF(value, '(none)') ...
     </entry>
         <entry><type>text</type></entry>
         <entry>concatenates array elements using provided delimiter</entry>
-        <entry><literal>array_to_string(array[1, 2, 3], '~^~')</literal></entry>
+        <entry><literal>array_to_string(ARRAY[1, 2, 3], '~^~')</literal></entry>
         <entry><literal>1~^~2~^~3</literal></entry>
        </row>
        <row>
@@ -7029,7 +7029,7 @@ SELECT NULLIF(value, '(none)') ...
     </entry>
         <entry><type>text[]</type></entry>
         <entry>splits string into array elements using provided delimiter</entry>
-        <entry><literal>string_to_array( 'xx~^~yy~^~zz', '~^~')</literal></entry>
+        <entry><literal>string_to_array('xx~^~yy~^~zz', '~^~')</literal></entry>
         <entry><literal>{xx,yy,zz}</literal></entry>
        </row>
       </tbody>