Below is the list of changes that have just been committed into a local
5.0 repository of df. When df does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-05-23 10:49:26+02:00, df@stripped +2 -0
Merge pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0.42
into pippilotta.erinye.com:/shared/home/df/mysql/build/mysql-5.0-build
MERGE: 1.2483.1.2
configure.in@stripped, 2007-05-23 10:49:23+02:00, df@stripped +0 -0
Auto merged
MERGE: 1.441.1.1
sql/item_func.cc@stripped, 2007-05-23 10:49:23+02:00, df@stripped +0 -0
Auto merged
MERGE: 1.336.1.6
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: df
# Host: pippilotta.erinye.com
# Root: /shared/home/df/mysql/build/mysql-5.0-build/RESYNC
--- 1.442/configure.in 2007-05-14 14:59:16 +02:00
+++ 1.443/configure.in 2007-05-23 10:49:23 +02:00
@@ -2006,12 +2006,20 @@
;;
esac
-# isinf() could be a function or a macro (HPUX)
-AC_MSG_CHECKING(for isinf with <math.h>)
+# Check that isinf() is available in math.h and can be used in both C and C++
+# code
+AC_MSG_CHECKING(for isinf in <math.h>)
AC_TRY_LINK([#include <math.h>], [float f = 0.0; int r = isinf(f); return r],
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_ISINF, [1], [isinf() macro or function]),
- AC_MSG_RESULT(no))
+ AC_MSG_RESULT(yes)
+ AC_MSG_CHECKING(whether isinf() can be used in C++ code)
+ AC_LANG_SAVE
+ AC_LANG_CPLUSPLUS
+ AC_TRY_LINK([#include <math.h>], [float f = 0.0; int r = isinf(f); return r],
+ AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_ISINF, [1], [isinf() macro or function]),
+ AC_MSG_RESULT(no))
+ AC_LANG_RESTORE,
+ AC_MSG_RESULT(no))
CFLAGS="$ORG_CFLAGS"
--- 1.338/sql/item_func.cc 2007-05-15 11:56:03 +02:00
+++ 1.339/sql/item_func.cc 2007-05-23 10:49:23 +02:00
@@ -2025,9 +2025,9 @@
tmp=(abs_dec < array_elements(log_10) ?
log_10[abs_dec] : pow(10.0,(double) abs_dec));
- if (dec_negative && isinf(tmp))
+ if (dec_negative && my_isinf(tmp))
tmp2= 0;
- else if (!dec_negative && isinf(value * tmp))
+ else if (!dec_negative && my_isinf(value * tmp))
tmp2= value;
else if (truncate)
{
| Thread |
|---|
| • bk commit into 5.0 tree (df:1.2492) | Daniel Fischer | 23 May |