Fix incorrect punctuation in error message
authorPeter Eisentraut <[email protected]>
Tue, 18 Jun 2024 12:53:11 +0000 (14:53 +0200)
committerPeter Eisentraut <[email protected]>
Tue, 18 Jun 2024 12:58:39 +0000 (14:58 +0200)
src/backend/utils/adt/timestamp.c
src/test/regress/expected/window.out

index e4715605a2de6ba1a08e9b0f77394cb186ebb709..cdc7e43b93043a95319ee572c92418edce043f87 100644 (file)
@@ -4186,7 +4186,7 @@ interval_avg(PG_FUNCTION_ARGS)
        if (state->pInfcount > 0 && state->nInfcount > 0)
            ereport(ERROR,
                    (errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
-                    errmsg("interval out of range.")));
+                    errmsg("interval out of range")));
 
        result = (Interval *) palloc(sizeof(Interval));
        if (state->pInfcount > 0)
@@ -4223,7 +4223,7 @@ interval_sum(PG_FUNCTION_ARGS)
    if (state->pInfcount > 0 && state->nInfcount > 0)
        ereport(ERROR,
                (errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
-                errmsg("interval out of range.")));
+                errmsg("interval out of range")));
 
    result = (Interval *) palloc(sizeof(Interval));
 
index ae4e8851f8a7915bddba9d02f70fbcc7c2746d69..8b447aa01e59fd740adae7e97c1808a14031fcf1 100644 (file)
@@ -4833,7 +4833,7 @@ FROM (VALUES (NULL::interval),
                ('infinity'::timestamptz - now()),
                ('6 days'::interval),
                ('-infinity'::interval)) v(x);
-ERROR:  interval out of range.
+ERROR:  interval out of range
 --should fail.
 SELECT x, sum(x) OVER(ROWS BETWEEN CURRENT ROW AND 2 FOLLOWING)
 FROM (VALUES (NULL::interval),
@@ -4841,7 +4841,7 @@ FROM (VALUES (NULL::interval),
                ('infinity'::timestamptz - now()),
                ('6 days'::interval),
                ('-infinity'::interval)) v(x);
-ERROR:  interval out of range.
+ERROR:  interval out of range
 SELECT i,SUM(v::smallint) OVER (ORDER BY i ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
   FROM (VALUES(1,1),(2,2),(3,NULL),(4,NULL)) t(i,v);
  i | sum