projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9755ee6
)
interval_out failed to mention 'ago' for negative intervals in SQL and
author
Tom Lane
<
[email protected]
>
Tue, 11 Jan 2005 18:34:29 +0000
(18:34 +0000)
committer
Tom Lane
<
[email protected]
>
Tue, 11 Jan 2005 18:34:29 +0000
(18:34 +0000)
GERMAN datestyles. Ancient bug reported by Terry Lee Tucker.
src/backend/utils/adt/datetime.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/datetime.c
b/src/backend/utils/adt/datetime.c
index d04bc62531cc52a80c3f85cff7211c51cda5733a..b1dde66994260a4fc5e904c975b085300878e32d 100644
(file)
--- a/
src/backend/utils/adt/datetime.c
+++ b/
src/backend/utils/adt/datetime.c
@@
-3642,7
+3642,7
@@
EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str)
cp += strlen(cp);
}
- if (is_before && (style
== USE_POSTGRES
_DATES))
+ if (is_before && (style
!= USE_ISO
_DATES))
{
strcat(cp, " ago");
cp += strlen(cp);