We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent446d5d3 commit0711a8bCopy full SHA for 0711a8b
src/backend/utils/adt/datetime.c
@@ -4049,6 +4049,11 @@ EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str)
4049
/* Compatible with postgresql < 8.4 when DateStyle = 'iso' */
4050
caseINTSTYLE_POSTGRES:
4051
cp=AddPostgresIntPart(cp,year,"year",&is_zero,&is_before);
4052
+/*
4053
+ *Ideally we should spell out "month" like we do for "year"
4054
+ *and "day". However, for backward compatibility, we can't
4055
+ *easily fix this. bjm 2011-05-24
4056
+ */
4057
cp=AddPostgresIntPart(cp,mon,"mon",&is_zero,&is_before);
4058
cp=AddPostgresIntPart(cp,mday,"day",&is_zero,&is_before);
4059
if (is_zero||hour!=0||min!=0||sec!=0||fsec!=0)