summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2006-07-13 00:18:59 +0400
committerunknown <kostja@bodhi.local>2006-07-13 00:18:59 +0400
commit26f0d13d0163beba2ae4f96396302b0c44407c65 (patch)
tree72d131bf20c7f83d51448986e035a8f9cbfb5c73 /sql/mysql_priv.h
parente8699b56140571305b898c29bdc45a5bab117a45 (diff)
parentfe4ed2440dad75c005465315199243cdec36a7f4 (diff)
downloadmariadb-git-26f0d13d0163beba2ae4f96396302b0c44407c65.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge sql/ha_ndbcluster.cc: Auto merged sql/ha_partition.cc: Auto merged sql/log_event.cc: Auto merged sql/mysql_priv.h: Auto merged sql/sql_delete.cc: Auto merged sql/sql_load.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_trigger.cc: Auto merged sql/sql_update.cc: Auto merged sql/table.cc: Auto merged mysql-test/r/federated.result: Manual merge. mysql-test/t/federated.test: Manual merge. sql/sql_insert.cc: Manual merge.
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 836d4f3356e..55958bae061 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -1970,6 +1970,17 @@ inline int hexchar_to_int(char c)
}
/*
+ 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
server
*/