diff options
author | unknown <monty@hundin.mysql.fi> | 2001-10-31 18:27:49 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-10-31 18:27:49 +0200 |
commit | 03f6fdd575f71aacd4b6e782c9df4b929f8222b1 (patch) | |
tree | 603547f133fd6eaa7de511aeb171eb8224e0d208 /mysys | |
parent | 3f7cf671a1d735a72e98e89d91a16cce085e6817 (diff) | |
download | mariadb-git-03f6fdd575f71aacd4b6e782c9df4b929f8222b1.tar.gz |
Portability fixes
Fix for consistent 0000-00-00 date handling
Close + open binary logs on flush tables
Fix for AVG() in HAVING.
BUILD/SETUP.sh:
Compile MySQL with -O0 to make debugging easier.
Docs/manual.texi:
Changelog
configure.in:
Version change
innobase/buf/buf0lru.c:
Fix for windows
mysql-test/r/func_time.result:
Updated tests
mysql-test/r/having.result:
Updated tests
mysql-test/t/func_time.test:
Updated tests
mysql-test/t/having.test:
Updated tests
mysys/mf_casecnv.c:
Portability fix
mysys/mf_qsort.c:
Portability fix
mysys/my_compress.c:
Portability fix
mysys/my_tempnam.c:
More comments
sql/field.cc:
Fix for consistent 0000-00-00 date handling
sql/item.h:
Fix for AVG() in HAVING
sql/log.cc:
Close + open update logs on flush tables
sql/sql_select.cc:
More debugging info
sql/time.cc:
Fix for consistent 0000-00-00 date handling
strings/ctype.c:
Portability fix
strings/strto.c:
Portability fix
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_casecnv.c | 1 | ||||
-rw-r--r-- | mysys/mf_qsort.c | 1 | ||||
-rw-r--r-- | mysys/my_compress.c | 1 | ||||
-rw-r--r-- | mysys/my_tempnam.c | 11 |
4 files changed, 12 insertions, 2 deletions
diff --git a/mysys/mf_casecnv.c b/mysys/mf_casecnv.c index 4ec3b66d9cb..125f54b2594 100644 --- a/mysys/mf_casecnv.c +++ b/mysys/mf_casecnv.c @@ -25,6 +25,7 @@ #include "mysys_priv.h" #include <m_ctype.h> +#include <m_string.h> /* string to uppercase */ diff --git a/mysys/mf_qsort.c b/mysys/mf_qsort.c index 032a1a28a72..64e70990696 100644 --- a/mysys/mf_qsort.c +++ b/mysys/mf_qsort.c @@ -25,6 +25,7 @@ */ #include "mysys_priv.h" +#include <m_string.h> /* Envoke the comparison function, returns either 0, < 0, or > 0. */ #ifdef QSORT_EXTRA_CMP_ARGUMENT diff --git a/mysys/my_compress.c b/mysys/my_compress.c index d1e32234135..f97d28c25ea 100644 --- a/mysys/my_compress.c +++ b/mysys/my_compress.c @@ -20,6 +20,7 @@ #include <global.h> #ifdef HAVE_COMPRESS #include <my_sys.h> +#include <m_string.h> #include <zlib.h> /* diff --git a/mysys/my_tempnam.c b/mysys/my_tempnam.c index 6b7ac099581..fdaf018af0d 100644 --- a/mysys/my_tempnam.c +++ b/mysys/my_tempnam.c @@ -15,6 +15,13 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +/* + This function is only used by some old ISAM code. + When we remove ISAM support from MySQL, we should also delete this file + + One should instead use the functions in mf_tempfile.c +*/ + #include "mysys_priv.h" #include <m_string.h> #include "my_static.h" @@ -103,13 +110,13 @@ my_string my_tempnam(const char *dir, const char *pfx, old_env=(char**)environ; if (dir) { /* Don't use TMPDIR if dir is given */ - environ=(const char**)temp_env; + environ=(const char**)temp_env; /* May give warning */ temp_env[0]=0; } #endif res=tempnam((char*) dir,(my_string) pfx); /* Use stand. dir with prefix */ #ifndef OS2 - environ=(const char**)old_env; + environ=(const char**)old_env; /* May give warning */ #endif if (!res) DBUG_PRINT("error",("Got error: %d from tempnam",errno)); |