|
1 | 1 | /* -----------------------------------------------------------------------
|
2 | 2 | * formatting.c
|
3 | 3 | *
|
4 |
| - * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.46 2001/12/05 02:06:19 ishii Exp $ |
| 4 | + * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.47 2001/12/10 15:34:05 tgl Exp $ |
5 | 5 | *
|
6 | 6 | *
|
7 | 7 | * Portions Copyright (c) 1999-2000, PostgreSQL Global Development Group
|
@@ -1476,7 +1476,7 @@ seq_search(char *name, char **array, int type, int max, int *len)
|
1476 | 1476 | return-1;
|
1477 | 1477 |
|
1478 | 1478 | /* set first char */
|
1479 |
| -if (type==ONE_UPPER||ALL_UPPER) |
| 1479 | +if (type==ONE_UPPER||type==ALL_UPPER) |
1480 | 1480 | *name=toupper((unsignedchar)*name);
|
1481 | 1481 | elseif (type==ALL_LOWER)
|
1482 | 1482 | *name=tolower((unsignedchar)*name);
|
@@ -2521,7 +2521,7 @@ dch_date(int arg, char *inout, int suf, int flag, FormatNode *node, void *data)
|
2521 | 2521 | }
|
2522 | 2522 | elseif (flag==FROM_CHAR)
|
2523 | 2523 | {
|
2524 |
| -tmfc->mm=12-seq_search(inout,rm_months_lower,ALL_UPPER,FULL_SIZ,&len); |
| 2524 | +tmfc->mm=12-seq_search(inout,rm_months_lower,ALL_LOWER,FULL_SIZ,&len); |
2525 | 2525 | CHECK_SEQ_SEARCH(len,"rm");
|
2526 | 2526 | if (S_FM(suf))
|
2527 | 2527 | returnlen-1;
|
|