Patch to release clone. Fixes two post-pushbuild discovered failures.

Expand float size to avoid assert()ion failures.

"_db_func_" isn't a known linked object on some platforms, possibly 
because it is occasionaly shadowed by DBUG variables.  Avoid that
confusion.


sql/sql_profile.cc:
  Expand float size to avoid assert()ion failures.
  
  "_db_func_" isn't a known linked object on some platforms, possibly 
  because it is occasionaly shadowed by DBUG variables.  Avoid that
  confusion.
sql/sql_profile.h:
  "_db_func_" isn't a known linked object on some platforms, possibly 
  because it is occasionaly shadowed by DBUG variables.  Avoid that
  confusion.
This commit is contained in:
unknown 2007-03-02 09:14:33 -05:00
parent 4cb4899fa2
commit 37dd1c9de4
2 changed files with 8 additions and 8 deletions

View File

@ -17,13 +17,13 @@
#include "mysql_priv.h" #include "mysql_priv.h"
#include "my_sys.h" #include "my_sys.h"
#define TIME_FLOAT_DIGITS 7 #define TIME_FLOAT_DIGITS 9
#define MAX_QUERY_LENGTH 300 #define MAX_QUERY_LENGTH 300
bool schema_table_store_record(THD *thd, TABLE *table); bool schema_table_store_record(THD *thd, TABLE *table);
/* Reserved for systems that can't record the function name in source. */ /* Reserved for systems that can't record the function name in source. */
const char *_db_func_= "<unknown>"; const char * const _unknown_func_ = "<unknown>";
/** /**
Connects Information_Schema and Profiling. Connects Information_Schema and Profiling.

View File

@ -20,21 +20,21 @@
# if __GNUC__ >= 2 # if __GNUC__ >= 2
# define __func__ __FUNCTION__ # define __func__ __FUNCTION__
# else # else
# define __func__ _db_func_ # define __func__ _unknown_func_
extern const char *_db_func_; extern const char * const _unknown_func_;
# endif # endif
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
# if _MSC_VER < 1300 # if _MSC_VER < 1300
# define __func__ _db_func_ # define __func__ _unknown_func_
extern const char *_db_func_; extern const char * const _unknown_func_;
# else # else
# define __func__ __FUNCTION__ # define __func__ __FUNCTION__
# endif # endif
#elif defined(__BORLANDC__) #elif defined(__BORLANDC__)
# define __func__ __FUNC__ # define __func__ __FUNC__
#else #else
# define __func__ _db_func_ # define __func__ _unknown_func_
extern const char *_db_func_; extern const char * const _unknown_func_;
#endif #endif
extern ST_FIELD_INFO query_profile_statistics_info[]; extern ST_FIELD_INFO query_profile_statistics_info[];