From 9b16a7b91a001d384b9959c25968fe1c5ab4c768 Mon Sep 17 00:00:00 2001 From: "aelkin@mysql.com" <> Date: Fri, 12 May 2006 21:29:06 +0300 Subject: BUG#19188: incorrect temporary table name of DROP query in replication A pattern to generate binlog for DROPped temp table in close_temporary_tables was buggy: could not deal with a grave-accent-in-name table. The fix exploits `append_identifier()' for quoting and duplicating accents. --- sql/mysql_priv.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sql/mysql_priv.h') diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 6676d994cfa..634e7bad738 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -1275,6 +1275,18 @@ 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->real_name; + 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