mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03: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:
@@ -663,7 +663,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);
|
||||
|
Reference in New Issue
Block a user