Fix up comment munged by pg_indent. (Not pg_indent's fault; should have

protected comment with dashes the first time round.)
This commit is contained in:
Tom Lane 2005-11-22 22:30:33 +00:00
parent 436a2956d8
commit e96925fba7
1 changed files with 22 additions and 13 deletions

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.159 2005/11/22 18:17:23 momjian Exp $ * $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.160 2005/11/22 22:30:33 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -1943,21 +1943,30 @@ timestamp_mi(PG_FUNCTION_ARGS)
result->month = 0; result->month = 0;
result->day = 0; result->day = 0;
/* /*----------
* This is wrong, but removing it breaks a lot of regression tests. For * This is wrong, but removing it breaks a lot of regression tests.
* example: * For example:
* *
* test=> SET timezone = 'EST5EDT'; test=> SELECT test-> ('2005-10-30 * test=> SET timezone = 'EST5EDT';
* 13:22:00-05'::timestamptz - test(> '2005-10-29 * test=> SELECT
* 13:22:00-04'::timestamptz); ?column? ---------------- 1 day 01:00:00 (1 * test-> ('2005-10-30 13:22:00-05'::timestamptz -
* row) * test(> '2005-10-29 13:22:00-04'::timestamptz);
* ?column?
* ----------------
* 1 day 01:00:00
* (1 row)
* *
* so adding that to the first timestamp gets: * so adding that to the first timestamp gets:
* *
* test=> SELECT test-> ('2005-10-29 13:22:00-04'::timestamptz + test(> * test=> SELECT
* ('2005-10-30 13:22:00-05'::timestamptz - test(> '2005-10-29 * test-> ('2005-10-29 13:22:00-04'::timestamptz +
* 13:22:00-04'::timestamptz)) at time zone 'EST'; timezone * test(> ('2005-10-30 13:22:00-05'::timestamptz -
* -------------------- 2005-10-30 14:22:00 (1 row) * test(> '2005-10-29 13:22:00-04'::timestamptz)) at time zone 'EST';
* timezone
* --------------------
* 2005-10-30 14:22:00
* (1 row)
*----------
*/ */
result = DatumGetIntervalP(DirectFunctionCall1(interval_justify_hours, result = DatumGetIntervalP(DirectFunctionCall1(interval_justify_hours,
IntervalPGetDatum(result))); IntervalPGetDatum(result)));