Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e96925f

Browse files
committed
Fix up comment munged by pg_indent. (Not pg_indent's fault; should have
protected comment with dashes the first time round.)
1 parent 436a295 commit e96925f

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

src/backend/utils/adt/timestamp.c

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.159 2005/11/22 18:17:23 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.160 2005/11/22 22:30:33 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -1943,21 +1943,30 @@ timestamp_mi(PG_FUNCTION_ARGS)
19431943
result->month = 0;
19441944
result->day = 0;
19451945

1946-
/*
1947-
* This is wrong, but removing it breaks a lot of regression tests. For
1948-
* example:
1946+
/*----------
1947+
* This is wrong, but removing it breaks a lot of regression tests.
1948+
* For example:
19491949
*
1950-
* test=> SET timezone = 'EST5EDT'; test=> SELECT test-> ('2005-10-30
1951-
* 13:22:00-05'::timestamptz - test(> '2005-10-29
1952-
* 13:22:00-04'::timestamptz); ?column? ---------------- 1 day 01:00:00 (1
1953-
* row)
1950+
* test=> SET timezone = 'EST5EDT';
1951+
* test=> SELECT
1952+
* test-> ('2005-10-30 13:22:00-05'::timestamptz -
1953+
* test(> '2005-10-29 13:22:00-04'::timestamptz);
1954+
* ?column?
1955+
* ----------------
1956+
* 1 day 01:00:00
1957+
* (1 row)
19541958
*
1955-
* so adding that to the first timestamp gets:
1959+
* so adding that to the first timestamp gets:
19561960
*
1957-
* test=> SELECT test-> ('2005-10-29 13:22:00-04'::timestamptz + test(>
1958-
* ('2005-10-30 13:22:00-05'::timestamptz - test(> '2005-10-29
1959-
* 13:22:00-04'::timestamptz)) at time zone 'EST'; timezone
1960-
* -------------------- 2005-10-30 14:22:00 (1 row)
1961+
* test=> SELECT
1962+
* test-> ('2005-10-29 13:22:00-04'::timestamptz +
1963+
* test(> ('2005-10-30 13:22:00-05'::timestamptz -
1964+
* test(> '2005-10-29 13:22:00-04'::timestamptz)) at time zone 'EST';
1965+
* timezone
1966+
* --------------------
1967+
* 2005-10-30 14:22:00
1968+
* (1 row)
1969+
*----------
19611970
*/
19621971
result = DatumGetIntervalP(DirectFunctionCall1(interval_justify_hours,
19631972
IntervalPGetDatum(result)));

0 commit comments

Comments
 (0)