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

Commit94cf48d

Browse files
committed
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 ofweek).
1 parenta80b1b4 commit94cf48d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* -----------------------------------------------------------------------
22
* formatting.c
33
*
4-
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.111 2006/09/03 01:22:56 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.112 2006/09/1022:54:47 momjian Exp $
55
*
66
*
77
* 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,
23672367
}
23682368
break;
23692369
caseDCH_D:
2370+
INVALID_FOR_INTERVAL;
23702371
if (is_to_char)
23712372
{
23722373
sprintf(inout,"%d",tm->tm_wday+1);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp