diff options
author | unknown <monty@mysql.com> | 2006-05-05 11:38:05 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2006-05-05 11:38:05 +0300 |
commit | e44823ff7f45496a440124fdd5cd193b85892b12 (patch) | |
tree | a81cceb59b8cab39decd8f3e567559b8dedf2e23 /sql/sql_view.cc | |
parent | 2a655fcc519a968d2dd33534b37c923549b37a7b (diff) | |
parent | 9535b1274d789f2e21ac76e600d2be3a91b46bfd (diff) | |
download | mariadb-git-e44823ff7f45496a440124fdd5cd193b85892b12.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/home/my/mysql-5.1
sql/ha_ndbcluster.cc:
Auto merged
mysql-test/t/disabled.def:
Manual merge
Diffstat (limited to 'sql/sql_view.cc')
-rw-r--r-- | sql/sql_view.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index 3ef6a234f4e..9a27504ba08 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -943,7 +943,6 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table) goto err; } - if (!(table->view_tables= (List<TABLE_LIST>*) new(thd->mem_root) List<TABLE_LIST>)) goto err; @@ -1194,13 +1193,17 @@ ok2: old_lex->time_zone_tables_used= thd->lex->time_zone_tables_used; result= !table->prelocking_placeholder && table->prepare_security(thd); + lex_end(thd->lex); end: if (arena) thd->restore_active_arena(arena, &backup); + lex_end(thd->lex); thd->lex= old_lex; DBUG_RETURN(result); err: + DBUG_ASSERT(thd->lex == table->view); + lex_end(thd->lex); delete table->view; table->view= 0; // now it is not VIEW placeholder result= 1; |