Loading Docs/manual.texi +16 −0 Original line number Diff line number Diff line Loading @@ -31379,6 +31379,17 @@ mysql> SELECT 'David!' LIKE 'David_'; -> 1 mysql> SELECT 'David!' LIKE '%D%v%'; -> 1 mysql> select TRUNCATE(-1,999,1); -> -1.9 @end example Starting from MySQL 3.23.51 all numbers are rounded towards zero. If @code{D} is negative, then the whole part of the number is zeroed out: @example mysql> select truncate(122,-2); -> 100 @end example To test for literal instances of a wildcard character, precede the character Loading Loading @@ -47075,6 +47086,11 @@ the following things: @itemize @bullet @item Cleaned up @code{NULL} handling for default values in @code{DESCRIBE table_name}. @item Fixed @code{truncate()} to round up negative values to the nearest integer. @item Take down the @code{mysqld} daemon with @code{mysqladmin shutdown}, run @code{myisamchk --silent --force */*.MYI} on all tables, and restart the @code{mysqld} daemon. This will ensure that you are running from a clean configure.in +4 −4 Original line number Diff line number Diff line Loading @@ -1601,7 +1601,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading Loading @@ -1634,7 +1634,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading Loading @@ -1666,7 +1666,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading @@ -1692,7 +1692,7 @@ then # Check definition of pthread_getspecific AC_CACHE_CHECK("args to pthread_getspecific", mysql_cv_getspecific_args, AC_TRY_COMPILE( [#if !defined(SCO) && !defined(__osf__) [#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #define _POSIX_PTHREAD_SEMANTICS Loading extra/resolveip.c +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ #include <my_global.h> #include <m_ctype.h> #include <my_net.h> #include <my_sys.h> #include <m_string.h> #include <sys/types.h> Loading @@ -30,6 +29,7 @@ #endif #include <arpa/inet.h> #include <netdb.h> #include <my_net.h> #include <my_getopt.h> #if !defined(_AIX) && !defined(HAVE_UNIXWARE7_THREADS) && !defined(HAVE_UNIXWARE7_POSIX) && !defined(h_errno) Loading include/my_net.h +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ struct hostent *my_gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop); #define my_gethostbyname_r_free() #if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) #if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) && !defined(HPUX) #define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data) #endif /* !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) */ Loading include/my_pthread.h +1 −1 Original line number Diff line number Diff line Loading @@ -349,7 +349,7 @@ extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority); #undef HAVE_GETHOSTBYADDR_R /* No definition */ #endif #if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT) #if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT) && !defined(SAFE_MUTEX) extern int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, struct timespec *abstime); Loading Loading
Docs/manual.texi +16 −0 Original line number Diff line number Diff line Loading @@ -31379,6 +31379,17 @@ mysql> SELECT 'David!' LIKE 'David_'; -> 1 mysql> SELECT 'David!' LIKE '%D%v%'; -> 1 mysql> select TRUNCATE(-1,999,1); -> -1.9 @end example Starting from MySQL 3.23.51 all numbers are rounded towards zero. If @code{D} is negative, then the whole part of the number is zeroed out: @example mysql> select truncate(122,-2); -> 100 @end example To test for literal instances of a wildcard character, precede the character Loading Loading @@ -47075,6 +47086,11 @@ the following things: @itemize @bullet @item Cleaned up @code{NULL} handling for default values in @code{DESCRIBE table_name}. @item Fixed @code{truncate()} to round up negative values to the nearest integer. @item Take down the @code{mysqld} daemon with @code{mysqladmin shutdown}, run @code{myisamchk --silent --force */*.MYI} on all tables, and restart the @code{mysqld} daemon. This will ensure that you are running from a clean
configure.in +4 −4 Original line number Diff line number Diff line Loading @@ -1601,7 +1601,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading Loading @@ -1634,7 +1634,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading Loading @@ -1666,7 +1666,7 @@ then fi AC_TRY_COMPILE( [#undef inline #if !defined(SCO) && !defined(__osf__) #if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #include <pthread.h> Loading @@ -1692,7 +1692,7 @@ then # Check definition of pthread_getspecific AC_CACHE_CHECK("args to pthread_getspecific", mysql_cv_getspecific_args, AC_TRY_COMPILE( [#if !defined(SCO) && !defined(__osf__) [#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT) #define _REENTRANT #endif #define _POSIX_PTHREAD_SEMANTICS Loading
extra/resolveip.c +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,6 @@ #include <my_global.h> #include <m_ctype.h> #include <my_net.h> #include <my_sys.h> #include <m_string.h> #include <sys/types.h> Loading @@ -30,6 +29,7 @@ #endif #include <arpa/inet.h> #include <netdb.h> #include <my_net.h> #include <my_getopt.h> #if !defined(_AIX) && !defined(HAVE_UNIXWARE7_THREADS) && !defined(HAVE_UNIXWARE7_POSIX) && !defined(h_errno) Loading
include/my_net.h +1 −1 Original line number Diff line number Diff line Loading @@ -84,7 +84,7 @@ struct hostent *my_gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop); #define my_gethostbyname_r_free() #if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) #if !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) && !defined(HPUX) #define GETHOSTBYNAME_BUFF_SIZE sizeof(struct hostent_data) #endif /* !defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) */ Loading
include/my_pthread.h +1 −1 Original line number Diff line number Diff line Loading @@ -349,7 +349,7 @@ extern void my_pthread_attr_setprio(pthread_attr_t *attr, int priority); #undef HAVE_GETHOSTBYADDR_R /* No definition */ #endif #if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT) #if defined(HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT) && !defined(SAFE_MUTEX) extern int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, struct timespec *abstime); Loading