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

Commit5603e11

Browse files
committed
Fix incorrect punctuation in error message
1 parentae482a7 commit5603e11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4186,7 +4186,7 @@ interval_avg(PG_FUNCTION_ARGS)
41864186
if (state->pInfcount>0&&state->nInfcount>0)
41874187
ereport(ERROR,
41884188
(errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
4189-
errmsg("interval out of range.")));
4189+
errmsg("interval out of range")));
41904190

41914191
result= (Interval*)palloc(sizeof(Interval));
41924192
if (state->pInfcount>0)
@@ -4223,7 +4223,7 @@ interval_sum(PG_FUNCTION_ARGS)
42234223
if (state->pInfcount>0&&state->nInfcount>0)
42244224
ereport(ERROR,
42254225
(errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
4226-
errmsg("interval out of range.")));
4226+
errmsg("interval out of range")));
42274227

42284228
result= (Interval*)palloc(sizeof(Interval));
42294229

‎src/test/regress/expected/window.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,15 +4833,15 @@ FROM (VALUES (NULL::interval),
48334833
('infinity'::timestamptz - now()),
48344834
('6 days'::interval),
48354835
('-infinity'::interval)) v(x);
4836-
ERROR: interval out of range.
4836+
ERROR: interval out of range
48374837
--should fail.
48384838
SELECT x, sum(x) OVER(ROWS BETWEEN CURRENT ROW AND 2 FOLLOWING)
48394839
FROM (VALUES (NULL::interval),
48404840
('3 days'::interval),
48414841
('infinity'::timestamptz - now()),
48424842
('6 days'::interval),
48434843
('-infinity'::interval)) v(x);
4844-
ERROR: interval out of range.
4844+
ERROR: interval out of range
48454845
SELECT i,SUM(v::smallint) OVER (ORDER BY i ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING)
48464846
FROM (VALUES(1,1),(2,2),(3,NULL),(4,NULL)) t(i,v);
48474847
i | sum

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp