Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd3d0071

Browse files
committed
interval_out failed to mention 'ago' for negative intervals in SQL and
GERMAN datestyles. Ancient bug reported by Terry Lee Tucker.
1 parent5f0a468 commitd3d0071

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/backend/utils/adt/datetime.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.136 2004/12/31 22:01:21 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/datetime.c,v 1.137 2005/01/11 18:33:45 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -3932,7 +3932,7 @@ EncodeInterval(struct pg_tm * tm, fsec_t fsec, int style, char *str)
39323932
cp+=strlen(cp);
39333933
}
39343934

3935-
if (is_before&& (style==USE_POSTGRES_DATES))
3935+
if (is_before&& (style!=USE_ISO_DATES))
39363936
{
39373937
strcat(cp," ago");
39383938
cp+=strlen(cp);

‎src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ EncodeInterval(struct tm * tm, fsec_t fsec, int style, char *str)
663663
cp+=strlen(cp);
664664
}
665665

666-
if (is_before&& (style==USE_POSTGRES_DATES))
666+
if (is_before&& (style!=USE_ISO_DATES))
667667
{
668668
strcat(cp," ago");
669669
cp+=strlen(cp);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp