summaryrefslogtreecommitdiff
path: root/storage/myisammrg
diff options
context:
space:
mode:
authorunknown <svoj@june.mysql.com>2007-06-14 16:19:47 +0500
committerunknown <svoj@june.mysql.com>2007-06-14 16:19:47 +0500
commite1f5ce69b93301b152f475b9adc7264f25bb0148 (patch)
tree62434a3505fd48583ab8a1af0774274ba59e1143 /storage/myisammrg
parent5f26429db469128d189488fa161aedeb4eb7090a (diff)
parent5bc3eb2e1183dc5f73b007d48a509793cceb19f1 (diff)
downloadmariadb-git-e1f5ce69b93301b152f475b9adc7264f25bb0148.tar.gz
Merge mysql.com:/home/svoj/devel/mysql/BUG26976/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG26976/mysql-5.1-engines mysql-test/r/merge.result: Auto merged storage/myisammrg/ha_myisammrg.cc: Auto merged
Diffstat (limited to 'storage/myisammrg')
-rw-r--r--storage/myisammrg/ha_myisammrg.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/storage/myisammrg/ha_myisammrg.cc b/storage/myisammrg/ha_myisammrg.cc
index 04a9938f315..c03c1e28014 100644
--- a/storage/myisammrg/ha_myisammrg.cc
+++ b/storage/myisammrg/ha_myisammrg.cc
@@ -52,11 +52,22 @@ extern int check_definition(MI_KEYDEF *t1_keyinfo, MI_COLUMNDEF *t1_recinfo,
uint t1_keys, uint t1_recs,
MI_KEYDEF *t2_keyinfo, MI_COLUMNDEF *t2_recinfo,
uint t2_keys, uint t2_recs, bool strict);
+static void split_file_name(const char *file_name,
+ LEX_STRING *db, LEX_STRING *name);
+
+
extern "C" void myrg_print_wrong_table(const char *table_name)
{
+ LEX_STRING db, name;
+ char buf[FN_REFLEN];
+ split_file_name(table_name, &db, &name);
+ memcpy(buf, db.str, db.length);
+ buf[db.length]= '.';
+ memcpy(buf + db.length + 1, name.str, name.length);
+ buf[db.length + name.length + 1]= 0;
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_ERROR,
ER_ADMIN_WRONG_MRG_TABLE, ER(ER_ADMIN_WRONG_MRG_TABLE),
- table_name);
+ buf);
}