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

Commit705d17b

Browse files
authored
Add error reporting of interval for some of trigonometric functions
1 parentabe9ef9 commit705d17b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ dacosd(PG_FUNCTION_ARGS)
19511951
if (arg1<-1.0||arg1>1.0)
19521952
ereport(ERROR,
19531953
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
1954-
errmsg("input is out of range")));
1954+
errmsg("input is out of[-1, 1]range")));
19551955

19561956
if (arg1 >=0.0)
19571957
result=acosd_q1(arg1);
@@ -1986,7 +1986,7 @@ dasind(PG_FUNCTION_ARGS)
19861986
if (arg1<-1.0||arg1>1.0)
19871987
ereport(ERROR,
19881988
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
1989-
errmsg("input is out of range")));
1989+
errmsg("input is out of[-1, 1]range")));
19901990

19911991
if (arg1 >=0.0)
19921992
result=asind_q1(arg1);
@@ -2500,7 +2500,6 @@ float8_combine(PG_FUNCTION_ARGS)
25002500
float8N,
25012501
sumX,
25022502
sumX2;
2503-
25042503
if (!AggCheckCallContext(fcinfo,NULL))
25052504
elog(ERROR,"aggregate function called in non-aggregate context");
25062505

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp