Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e80b0bd6
Commit
e80b0bd6
authored
Jan 06, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for ERANGE in exp() as well.
Improve release docs for ecpg regression tests.
parent
19ce06b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+6
-4
src/tools/RELEASE_CHANGES
src/tools/RELEASE_CHANGES
+1
-1
No files found.
src/backend/utils/adt/float.c
View file @
e80b0bd6
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.14
4 2007/01/06 04:14:55
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.14
5 2007/01/06 15:18:02
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1444,8 +1444,8 @@ dpow(PG_FUNCTION_ARGS)
* using errno. However, some platform/CPU combinations return
* errno == EDOM and result == Nan for negative arg1 and very large arg2
* (they must be using something different from our floor() test to
* decide it's invalid). Other platforms
return errno == ERANGE and a
*
large
but finite result to signal overflow.
* decide it's invalid). Other platforms
(HPPA) return errno == ERANGE
*
and a large (HUGE_VAL)
but finite result to signal overflow.
*/
errno
=
0
;
result
=
pow
(
arg1
,
arg2
);
...
...
@@ -1459,7 +1459,6 @@ dpow(PG_FUNCTION_ARGS)
else
result
=
1
;
}
/* Some platoforms, e.g. HPPA, return ERANGE, but HUGE_VAL, not Inf */
else
if
(
errno
==
ERANGE
&&
!
isinf
(
result
))
result
=
get_float8_infinity
();
...
...
@@ -1477,7 +1476,10 @@ dexp(PG_FUNCTION_ARGS)
float8
arg1
=
PG_GETARG_FLOAT8
(
0
);
float8
result
;
errno
=
0
;
result
=
exp
(
arg1
);
if
(
errno
==
ERANGE
&&
!
isinf
(
result
))
result
=
get_float8_infinity
();
CHECKFLOATVAL
(
result
,
isinf
(
arg1
),
false
);
PG_RETURN_FLOAT8
(
result
);
...
...
src/tools/RELEASE_CHANGES
View file @
e80b0bd6
...
...
@@ -35,7 +35,7 @@ For Major Releases
* Bump library versions, if appropriate (see below)
o src/interfaces/*/Makefile
o src/interfaces/*/*/Makefile
o update ecpg regression expected files
o update ecpg regression expected files
for new library number
* Release notes
o check that dashed items from the TODO list are complete
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment