1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Merge lamia.home:/home/timka/mysql/src/5.0-bug-21774-sm

into  lamia.home:/home/timka/mysql/src/5.1-dbg
This commit is contained in:
timour/timka@lamia.home
2006-09-13 15:22:50 +03:00
5 changed files with 51 additions and 3 deletions

View File

@ -395,6 +395,15 @@ bool mysql_insert(THD *thd,TABLE_LIST *table_list,
table= table_list->table;
context= &thd->lex->select_lex.context;
/*
These three asserts test the hypothesis that the resetting of the name
resolution context below is not necessary at all since the list of local
tables for INSERT always consists of one table.
*/
DBUG_ASSERT(!table_list->next_local);
DBUG_ASSERT(!context->table_list->next_local);
DBUG_ASSERT(!context->first_name_resolution_table->next_name_resolution_table);
/* Save the state of the current name resolution context. */
ctx_state.save_state(context, table_list);