Here is a small doc patch that says that initcap lowercases the rest of
the characters in the string. The current doc suggests that it only
touches the first character in each word, which is not what the function

Maybe we should change the example to be 'hi THOMAS' instead of 'hi 

Is it okay for me to commit this?

/Dennis Björklund
Index: func.sgml
RCS file: /cvsroot/pgsql-server/doc/src/sgml/func.sgml,v
retrieving revision 1.187
diff -u -r1.187 func.sgml
--- func.sgml   22 Feb 2004 04:14:06 -0000      1.187
+++ func.sgml   26 Feb 2004 21:57:36 -0000
@@ -1109,7 +1109,10 @@
-       <entry>Convert first letter of each word (whitespace-separated) to upper 
+       <entry>
+        Convert first letter of each word (whitespace-separated) to upper case
+        and the rest to lower case.
+       </entry>
        <entry><literal>initcap('hi thomas')</literal></entry>
        <entry><literal>Hi Thomas</literal></entry>
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?


Reply via email to