This is an automated email from the ASF dual-hosted git repository. yjhjstz pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 9e294aa05a8bab102a521dcf0b5a10231065b19a Author: Peter Eisentraut <[email protected]> AuthorDate: Sat Aug 15 11:23:18 2020 +0200 Remove obsolete HAVE_BUGGY_SOLARIS_STRTOD Fixed more than 10 years ago. Reviewed-by: Noah Misch <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/aa266ede-baaa-f4e6-06cf-5b1737610e9a%402ndquadrant.com (cherry picked from commit bacda6a327efb820d0e9f3262b81e803b2d5702b) Reviewed-by: Alexandra Wang <[email protected]> --- src/backend/utils/adt/complex_type.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/backend/utils/adt/complex_type.c b/src/backend/utils/adt/complex_type.c index d9df259ef9..25ca047cdb 100644 --- a/src/backend/utils/adt/complex_type.c +++ b/src/backend/utils/adt/complex_type.c @@ -156,18 +156,6 @@ complex_decode_double(char **num_p) errmsg("invalid input syntax for type complex: \"%s\"", orig_num))); } -#ifdef HAVE_BUGGY_SOLARIS_STRTOD - else - { - /* - * Many versions of Solaris have a bug wherein strtod sets endptr to - * point one byte beyond the end of the string when given "inf" or - * "infinity". - */ - if (endptr != num && endptr[-1] == '\0') - endptr--; - } -#endif /* HAVE_BUGGY_SOLARIS_STRTOD */ /*** end of float8in ***/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
