summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-12-11 22:58:01 +0200
committerunknown <sanja@askmonty.org>2011-12-11 22:58:01 +0200
commit15e9be7a86189013f9b76c2625c8da65045e75d1 (patch)
tree2bd94a2bce59daf6817831f268bf379036c405dd /sql/sql_show.cc
parent2e34f1828ec6b1bf897eaa23dec8fce544047278 (diff)
downloadmariadb-git-15e9be7a86189013f9b76c2625c8da65045e75d1.tar.gz
Fixed valgrind problem: reference on deleted memory of temporary table name.
Removed previous patch of this problem.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index fccb071ccb3..f800a173672 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -729,7 +729,6 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
Protocol *protocol= thd->protocol;
char buff[2048];
String buffer(buff, sizeof(buff), system_charset_info);
- char *save_db, *save_table_name;
bool retval= TRUE; // Assume error
List<Item> field_list;
DBUG_ENTER("mysqld_show_create");
@@ -739,10 +738,6 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
/* We want to preserve the tree for views. */
thd->lex->context_analysis_only|= CONTEXT_ANALYSIS_ONLY_VIEW;
- /* Store original names if called from SP */
- save_db= table_list->db;
- save_table_name= table_list->table_name;
-
{
Show_create_error_handler view_error_suppressor(thd, table_list);
thd->push_internal_handler(&view_error_suppressor);
@@ -825,11 +820,7 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
retval= FALSE; // ok
error:
- /* Restore table list if called by stored procedure */
- table_list->db= save_db;
- table_list->table_name= save_table_name;
DBUG_RETURN(retval);
-
}
bool mysqld_show_create_db(THD *thd, char *dbname,