Commit 950a0005 authored by igor@rurik.mysql.com's avatar igor@rurik.mysql.com

Fixed some problems for Windows build

parent 19e312af
...@@ -144,6 +144,10 @@ SOURCE=.\readline.cpp ...@@ -144,6 +144,10 @@ SOURCE=.\readline.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\my_conio.c
# End Source File
# Begin Source File
SOURCE=.\sql_string.cpp SOURCE=.\sql_string.cpp
# End Source File # End Source File
# End Target # End Target
......
...@@ -130,6 +130,10 @@ SOURCE=.\readline.cpp ...@@ -130,6 +130,10 @@ SOURCE=.\readline.cpp
# End Source File # End Source File
# Begin Source File # Begin Source File
SOURCE=..\mysys\my_conio.c
# End Source File
# Begin Source File
SOURCE=.\sql_string.cpp SOURCE=.\sql_string.cpp
# End Source File # End Source File
# End Target # End Target
......
...@@ -2222,6 +2222,7 @@ static int dump_all_tables_in_db(char *database) ...@@ -2222,6 +2222,7 @@ static int dump_all_tables_in_db(char *database)
static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root) static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root)
{ {
char *name= 0; char *name= 0;
ulong *lengths;
MYSQL_RES *tableRes; MYSQL_RES *tableRes;
MYSQL_ROW row; MYSQL_ROW row;
char query[50 + 2*NAME_LEN]; char query[50 + 2*NAME_LEN];
...@@ -2246,7 +2247,7 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root) ...@@ -2246,7 +2247,7 @@ static char *get_actual_table_name(const char *old_table_name, MEM_ROOT *root)
if (numRows > 0) if (numRows > 0)
{ {
row= mysql_fetch_row( tableRes ); row= mysql_fetch_row( tableRes );
ulong *lengths= mysql_fetch_lengths(tableRes); lengths= mysql_fetch_lengths(tableRes);
name= strmake_root(root, row[0], lengths[0]); name= strmake_root(root, row[0], lengths[0]);
} }
mysql_free_result(tableRes); mysql_free_result(tableRes);
......
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