Commit fc59ec4e authored by unknown's avatar unknown

Windows build fixups with the latest source


sql/item_cmpfunc.cc:
  Remove unused variables
sql/mysqld.cc:
  fix the defination as this is different from the prototype (cl compiler failed)
sql/sql_insert.cc:
  fix the windows error (without cast)
sql/sql_show.cc:
  Remove unused variables
include/config-win.h:
  Fix for Windows build to go (charsets + collation default defs)
VC++Files/client/mysqlclient.dsp:
  Take care of newly added/removed files
VC++Files/libmysql/libmysql.dsp:
  Take care of newly added/removed files
VC++Files/sql/mysqld.dsp:
  Take care of newly added/removed files
parent da9bf1de
...@@ -430,10 +430,6 @@ SOURCE=..\mysys\safemalloc.c ...@@ -430,10 +430,6 @@ SOURCE=..\mysys\safemalloc.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\select_test.c
# End Source File
# Begin Source File
SOURCE=..\mysys\sha1.c SOURCE=..\mysys\sha1.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -215,10 +215,6 @@ SOURCE=.\libmysql.c ...@@ -215,10 +215,6 @@ SOURCE=.\libmysql.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\pack.c
# End Source File
# Begin Source File
SOURCE=.\Libmysql.def SOURCE=.\Libmysql.def
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -403,15 +399,15 @@ SOURCE=..\sql\net_serv.cpp ...@@ -403,15 +399,15 @@ SOURCE=..\sql\net_serv.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\password.c SOURCE=.\pack.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\safemalloc.c SOURCE=.\password.c
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\client\select_test.c SOURCE=..\mysys\safemalloc.c
# End Source File # End Source File
# Begin Source File # Begin Source File
......
...@@ -486,6 +486,10 @@ SOURCE=.\item_func.cpp ...@@ -486,6 +486,10 @@ SOURCE=.\item_func.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\item_geofunc.cpp
# End Source File
# Begin Source File
SOURCE=.\item_row.cpp SOURCE=.\item_row.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
...@@ -742,6 +746,10 @@ SOURCE=.\OPT_SUM.cpp ...@@ -742,6 +746,10 @@ SOURCE=.\OPT_SUM.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=.\pack.c
# End Source File
# Begin Source File
SOURCE=.\password.c SOURCE=.\password.c
!IF "$(CFG)" == "mysqld - Win32 Release" !IF "$(CFG)" == "mysqld - Win32 Release"
......
...@@ -333,3 +333,5 @@ inline double ulonglong2double(ulonglong value) ...@@ -333,3 +333,5 @@ inline double ulonglong2double(ulonglong value)
#define shared_memory_buffer_length 16000 #define shared_memory_buffer_length 16000
#define default_shared_memory_base_name "MYSQL" #define default_shared_memory_base_name "MYSQL"
#define MYSQL_DEFAULT_CHARSET_NAME "latin1"
#define MYSQL_DEFAULT_COLLATION_NAME "latin1_swedish_ci"
...@@ -246,7 +246,6 @@ void Item_bool_func2::fix_length_and_dec() ...@@ -246,7 +246,6 @@ void Item_bool_func2::fix_length_and_dec()
We must set cmp_charset here as we may be called from for an automatic We must set cmp_charset here as we may be called from for an automatic
generated item, like in natural join generated item, like in natural join
*/ */
end:
set_cmp_charset(args[0]->charset(), args[0]->coercibility, set_cmp_charset(args[0]->charset(), args[0]->coercibility,
args[1]->charset(), args[1]->coercibility); args[1]->charset(), args[1]->coercibility);
} }
......
...@@ -423,7 +423,7 @@ Query_cache query_cache; ...@@ -423,7 +423,7 @@ Query_cache query_cache;
#endif #endif
#ifdef HAVE_SMEM #ifdef HAVE_SMEM
char *shared_memory_base_name= default_shared_memory_base_name; char *shared_memory_base_name= default_shared_memory_base_name;
my_bool opt_enable_shared_memory; bool opt_enable_shared_memory;
#endif #endif
#include "sslopt-vars.h" #include "sslopt-vars.h"
...@@ -471,7 +471,6 @@ static void close_connections(void) ...@@ -471,7 +471,6 @@ static void close_connections(void)
#ifdef EXTRA_DEBUG #ifdef EXTRA_DEBUG
int count=0; int count=0;
#endif #endif
NET net;
DBUG_ENTER("close_connections"); DBUG_ENTER("close_connections");
/* Clear thread cache */ /* Clear thread cache */
......
...@@ -188,7 +188,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, ...@@ -188,7 +188,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list,
if (duplic == DUP_UPDATE && !table->insert_values) if (duplic == DUP_UPDATE && !table->insert_values)
{ {
/* it should be allocated before Item::fix_fields() */ /* it should be allocated before Item::fix_fields() */
table->insert_values=alloc_root(&table->mem_root, table->rec_buff_length); table->insert_values=(byte *)alloc_root(&table->mem_root, table->rec_buff_length);
if (!table->insert_values) if (!table->insert_values)
goto abort; goto abort;
} }
......
...@@ -1449,7 +1449,6 @@ int mysqld_show_collations(THD *thd, const char *wild) ...@@ -1449,7 +1449,6 @@ int mysqld_show_collations(THD *thd, const char *wild)
List<Item> field_list; List<Item> field_list;
CHARSET_INFO **cs; CHARSET_INFO **cs;
Protocol *protocol= thd->protocol; Protocol *protocol= thd->protocol;
char flags[64];
DBUG_ENTER("mysqld_show_charsets"); DBUG_ENTER("mysqld_show_charsets");
...@@ -1501,7 +1500,6 @@ int mysqld_show_charsets(THD *thd, const char *wild) ...@@ -1501,7 +1500,6 @@ int mysqld_show_charsets(THD *thd, const char *wild)
List<Item> field_list; List<Item> field_list;
CHARSET_INFO **cs; CHARSET_INFO **cs;
Protocol *protocol= thd->protocol; Protocol *protocol= thd->protocol;
char flags[64];
DBUG_ENTER("mysqld_show_charsets"); DBUG_ENTER("mysqld_show_charsets");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment