We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent09d09b9 commit182676aCopy full SHA for 182676a
src/backend/utils/adt/float.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.134 2007/01/0221:25:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.135 2007/01/0222:19:42 momjian Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -1444,7 +1444,7 @@ dpow(PG_FUNCTION_ARGS)
1444
1445
errno=0;
1446
result=pow(arg1,arg2);
1447
-if (errno!=0)
+if (errno!=0&& !isinf(result))
1448
ereport(ERROR,
1449
(errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
1450
errmsg("result is out of range")));
@@ -1469,7 +1469,7 @@ dexp(PG_FUNCTION_ARGS)
1469
1470
1471
result=exp(arg1);
1472
1473
1474
1475