Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5a16c commit e7fe89dCopy full SHA for e7fe89d
src/backend/utils/adt/oracle_compat.c
@@ -9,7 +9,7 @@
9
*
10
11
* IDENTIFICATION
12
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.44 2003/05/23 22:33:20 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.45 2003/07/27 03:16:20 momjian Exp $
13
14
*-------------------------------------------------------------------------
15
*/
@@ -132,7 +132,8 @@ initcap(PG_FUNCTION_ARGS)
132
133
while (m-- > 0)
134
{
135
- if (isspace((unsigned char) ptr[-1]))
+ /* Oracle capitalizes after all non-alphanumeric */
136
+ if (!isalnum((unsigned char) ptr[-1]))
137
*ptr = toupper((unsigned char) *ptr);
138
else
139
*ptr = tolower((unsigned char) *ptr);
0 commit comments