mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 19:16:17 -04:00
interval_out failed to mention 'ago' for negative intervals in SQL and
GERMAN datestyles. Ancient bug reported by Terry Lee Tucker.
This commit is contained in:
parent
e333705b84
commit
76f13fe78d
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.96.2.6 2003/08/05 17:39:36 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.96.2.7 2005/01/11 18:34:29 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue