From a9a3864fc4ec42604cee80bd0b6aadcdf9bb9bfa Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 29 May 2006 18:01:58 +0300 Subject: Bug#19188: incorrect temporary table name of DROP query in replication merge with 5.0. specific test case in inside of #17263 section (grave quoted name). mysql-test/r/rpl_temporary.result: results changed mysql-test/t/rpl_temporary.test: merge with 5.0 also to eliminate a typo with '@'. sql/mysql_priv.h: merged manually with 5.0 using 5.1 specific table's name "access path". sql/sql_base.cc: manual merge with 5.0. The 5.0 code was taken verbatim and changed according to a. rbr, b. db,tabl_name are LEX_STRIGs, c. close_temporary needs 3 args. --- sql/mysql_priv.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sql/mysql_priv.h') diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 127aa6c5acd..428723ff31f 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -1942,6 +1942,16 @@ inline int hexchar_to_int(char c) return -1; } +/* + is_user_table() + return true if the table was created explicitly +*/ + +inline bool is_user_table(TABLE * table) +{ + const char *name= table->s->table_name.str; + return strncmp(name, tmp_file_prefix, tmp_file_prefix_length); +} /* Some functions that are different in the embedded library and the normal -- cgit v1.2.1