1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Portability fixes to be able to compile MySQL with VC++

This commit is contained in:
monty@narttu.mysql.fi
2002-10-08 22:28:24 +03:00
parent 226535865b
commit da2abaf887
23 changed files with 146 additions and 63 deletions

View File

@ -1287,6 +1287,7 @@ mysql_execute_command(THD *thd)
int res= 0;
LEX *lex= &thd->lex;
TABLE_LIST *tables= (TABLE_LIST*) lex->select_lex.table_list.first;
TABLE_LIST *cursor;
SELECT_LEX *select_lex= &lex->select_lex;
SELECT_LEX_UNIT *unit= &lex->unit;
DBUG_ENTER("mysql_execute_command");
@ -1343,7 +1344,7 @@ mysql_execute_command(THD *thd)
DBUG_VOID_RETURN;
}
//check rights
for (TABLE_LIST *cursor= tables;
for (cursor= tables;
cursor;
cursor= cursor->next)
if (cursor->derived)
@ -1361,7 +1362,7 @@ mysql_execute_command(THD *thd)
}
thd->send_explain_fields(explain_result);
// EXPLAIN derived tables
for (TABLE_LIST *cursor= tables;
for (cursor= tables;
cursor;
cursor= cursor->next)
if (cursor->derived)