From: Bruce Momjian Date: Sun, 10 Sep 2006 22:54:47 +0000 (+0000) Subject: Back out patch added during 8.2.X development: X-Git-Tag: REL8_2_BETA1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94cf48d72b2d96b52c341ef0829a0fcd78113a9a;p=postgresql Back out patch added during 8.2.X development: Allow to_char() "D" format specifiers for interval/time. It doesn't work, and I doubt it is useful enough to fix ("D" = day of week). --- diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index 1a711090bd..53cf15319d 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.111 2006/09/03 01:22:56 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.112 2006/09/10 22:54:47 momjian Exp $ * * * Portions Copyright (c) 1999-2006, PostgreSQL Global Development Group @@ -2367,6 +2367,7 @@ dch_date(int arg, char *inout, int suf, bool is_to_char, bool is_interval, } break; case DCH_D: + INVALID_FOR_INTERVAL; if (is_to_char) { sprintf(inout, "%d", tm->tm_wday + 1);