Commit 09b501d6 authored by konstantin@mysql.com's avatar konstantin@mysql.com

Fixes for MSVC++ compiler.

parent 3e40d596
...@@ -42,7 +42,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename); ...@@ -42,7 +42,7 @@ my_bool handle_local_infile(MYSQL *mysql, const char *net_filename);
void mysql_read_default_options(struct st_mysql_options *options, void mysql_read_default_options(struct st_mysql_options *options,
const char *filename,const char *group); const char *filename,const char *group);
MYSQL * STDCALL MYSQL *
cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user, cli_mysql_real_connect(MYSQL *mysql,const char *host, const char *user,
const char *passwd, const char *db, const char *passwd, const char *db,
uint port, const char *unix_socket,ulong client_flag); uint port, const char *unix_socket,ulong client_flag);
......
...@@ -1726,7 +1726,6 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds, ...@@ -1726,7 +1726,6 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds,
tables; tables;
s++, tables= tables->next_local, i++) s++, tables= tables->next_local, i++)
{ {
table_map dep_tables;
TABLE_LIST *embedding= tables->embedding; TABLE_LIST *embedding= tables->embedding;
stat_vector[i]=s; stat_vector[i]=s;
s->keys.init(); s->keys.init();
......
...@@ -788,7 +788,7 @@ frm_type_enum mysql_frm_type(char *path) ...@@ -788,7 +788,7 @@ frm_type_enum mysql_frm_type(char *path)
{ {
DBUG_RETURN(FRMTYPE_ERROR); DBUG_RETURN(FRMTYPE_ERROR);
} }
if (my_read(file, header, 10, MYF(MY_WME)) == MY_FILE_ERROR) if (my_read(file, (byte*) header, 10, MYF(MY_WME)) == MY_FILE_ERROR)
{ {
my_close(file, MYF(MY_WME)); my_close(file, MYF(MY_WME));
DBUG_RETURN(FRMTYPE_ERROR); DBUG_RETURN(FRMTYPE_ERROR);
......
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