/* -----------------------------------------------------------------------
* formatting.c
*
- * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.118 2007/01/12 23:34:54 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.119 2007/02/08 03:22:28 momjian Exp $
*
*
* Portions Copyright (c) 1999-2007, PostgreSQL Global Development Group
{
tmfc->mm = seq_search(inout, months_full, ONE_UPPER, FULL_SIZ, &len) + 1;
CHECK_SEQ_SEARCH(len, "MONTH/Month/month");
- if (S_FM(suf))
- return len;
- else
- return 9;
+ return len;
}
else if (arg == DCH_MON || arg == DCH_Mon || arg == DCH_mon)
{
{
tmfc->d = seq_search(inout, days, ONE_UPPER, FULL_SIZ, &len);
CHECK_SEQ_SEARCH(len, "DAY/Day/day");
- if (S_FM(suf))
- return len;
- else
- return 9;
+ return len;
}
else if (arg == DCH_DY || arg == DCH_Dy || arg == DCH_dy)
{
{
tmfc->mm = 12 - seq_search(inout, rm_months_upper, ALL_UPPER, FULL_SIZ, &len);
CHECK_SEQ_SEARCH(len, "RM");
- if (S_FM(suf))
- return len;
- else
- return 4;
+ return len;
}
break;
case DCH_rm:
{
tmfc->mm = 12 - seq_search(inout, rm_months_lower, ALL_LOWER, FULL_SIZ, &len);
CHECK_SEQ_SEARCH(len, "rm");
- if (S_FM(suf))
- return len;
- else
- return 4;
+ return len;
}
break;
case DCH_W: