Commit f46a80c3 authored by Neil Conway's avatar Neil Conway

Fix a few omissions in the initcap() documentation & source code

comments, make some unrelated improvements to the functions
documentation, and perform some minor consistency cleanup
elsewhere. Original initcap() change from Dennis B., additional
changes by Neil C.
parent 2f17547c
This diff is collapsed.
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.35 2004/02/03 17:34:02 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/plpgsql.sgml,v 1.36 2004/02/27 03:59:23 neilc Exp $
--> -->
<chapter id="plpgsql"> <chapter id="plpgsql">
...@@ -392,7 +392,7 @@ END; ...@@ -392,7 +392,7 @@ END;
<para> <para>
All key words and identifiers can be written in mixed upper and All key words and identifiers can be written in mixed upper and
lower case. Identifiers are implicitly converted to lower-case lower case. Identifiers are implicitly converted to lowercase
unless double-quoted. unless double-quoted.
</para> </para>
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.49 2003/11/29 19:51:59 pgsql Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.50 2004/02/27 03:59:23 neilc Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -106,9 +106,10 @@ upper(PG_FUNCTION_ARGS) ...@@ -106,9 +106,10 @@ upper(PG_FUNCTION_ARGS)
* *
* Purpose: * Purpose:
* *
* Returns string, with first letter of each word in uppercase, * Returns string, with first letter of each word in uppercase, all
* all other letters in lowercase. A word is delimited by white * other letters in lowercase. A word is defined as a sequence of
* space. * alphanumeric characters, delimited by non-alphanumeric
* characters.
* *
********************************************************************/ ********************************************************************/
...@@ -872,7 +873,7 @@ ascii(PG_FUNCTION_ARGS) ...@@ -872,7 +873,7 @@ ascii(PG_FUNCTION_ARGS)
********************************************************************/ ********************************************************************/
Datum Datum
chr (PG_FUNCTION_ARGS) chr(PG_FUNCTION_ARGS)
{ {
int32 cvalue = PG_GETARG_INT32(0); int32 cvalue = PG_GETARG_INT32(0);
text *result; text *result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment