diff options
author | unknown <vvaintroub/Wlad@vaio.> | 2008-01-11 15:45:18 +0100 |
---|---|---|
committer | unknown <vvaintroub/Wlad@vaio.> | 2008-01-11 15:45:18 +0100 |
commit | 45500a70f09767cd0d3d973610c1289b60dc94c8 (patch) | |
tree | 5097719cb90f7f8d37f6dc504d6085a83afef342 /win | |
parent | 266fde77b283237fa2dd6db0f97fb68289fe0c21 (diff) | |
download | mariadb-git-45500a70f09767cd0d3d973610c1289b60dc94c8.tar.gz |
Fix windows warnings using correct datatypes if possible
and casts if not.
Add optional WITH_MARIA_TMP_TABLES parameter to configure.js. This
parameter defaults to true, if WITH_MARIA_STORAGE_ENGINE is present.
CMakeLists.txt:
Add WITH_MARIA_TMP_TABLES config parameter.
storage/maria/ma_blockrec.c:
Fix windows warning - use the correct datatype.
storage/maria/ma_loghandler.c:
Fix windows warnings by adding casts.
storage/maria/ma_pagecache.c:
Fix windows warning - use the correct datatype.
storage/maria/ma_recovery.c:
Fix windows warning by adding casts.
win/configure.js:
Add WITH_MARIA_TMP_TABLES. If WITH_MARIA_STORAGE_ENGINE is present,
it defaults to TRUE. To unset, pass WITH_MARIA_TMP_TABLES=FALSE to
configure.js
Diffstat (limited to 'win')
-rw-r--r-- | win/configure.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/win/configure.js b/win/configure.js index e4825ba8924..f3a30ec9686 100644 --- a/win/configure.js +++ b/win/configure.js @@ -32,6 +32,7 @@ try var default_comment = "Source distribution"; var default_port = GetValue(configureIn, "MYSQL_TCP_PORT_DEFAULT"); var actual_port = 0; + var with_maria_tmp_tables = -1; var configfile = fso.CreateTextFile("win\\configure.data", true); for (i=0; i < args.Count(); i++) @@ -45,13 +46,23 @@ try case "WITH_FEDERATED_STORAGE_ENGINE": case "WITH_INNOBASE_STORAGE_ENGINE": case "WITH_PARTITION_STORAGE_ENGINE": - case "WITH_MARIA_STORAGE_ENGINE": case "__NT__": case "CYBOZU": case "EMBED_MANIFESTS": case "WITH_EMBEDDED_SERVER": configfile.WriteLine("SET (" + args.Item(i) + " TRUE)"); break; + case "WITH_MARIA_STORAGE_ENGINE": + configfile.WriteLine("SET (" + args.Item(i) + " TRUE)"); + if(with_maria_tmp_tables == -1) + { + with_maria_tmp_tables = 1; + } + break; + case "WITH_MARIA_TMP_TABLES": + with_maria_tmp_tables = ( parts.length == 1 || + parts[1] == "YES" || parts[1] == "TRUE"); + break; case "MYSQL_SERVER_SUFFIX": case "MYSQLD_EXE_SUFFIX": configfile.WriteLine("SET (" + parts[0] + " \"" @@ -65,6 +76,10 @@ try break; } } + if (with_maria_tmp_tables == 1) + { + configfile.WriteLine("SET (WITH_MARIA_TMP_TABLES TRUE)"); + } if (actual_port == 0) { // if we actually defaulted (as opposed to the pathological case of |