mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-01 19:45:33 +08: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
643bb8125c
commit
2b47146a07
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.87.2.3 2003/01/26 22:33:16 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.87.2.4 2005/01/11 18:34:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -3448,7 +3448,7 @@ EncodeTimeSpan(struct tm * tm, double 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 New Issue
Block a user