Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite7fe89d

Browse files
committed
This makes the initcap function compatible with Oracle 9i, it has been
tested on both redhat 8 and FreebSD.--Mike Nolan
1 parent1e5a16c commite7fe89d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/utils/adt/oracle_compat.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
*$Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.44 2003/05/23 22:33:20tgl Exp $
12+
*$Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.45 2003/07/27 03:16:20momjian Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -132,7 +132,8 @@ initcap(PG_FUNCTION_ARGS)
132132

133133
while (m-->0)
134134
{
135-
if (isspace((unsignedchar)ptr[-1]))
135+
/* Oracle capitalizes after all non-alphanumeric */
136+
if (!isalnum((unsignedchar)ptr[-1]))
136137
*ptr=toupper((unsignedchar)*ptr);
137138
else
138139
*ptr=tolower((unsignedchar)*ptr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp