summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2002-11-08 22:22:23 +0100
committerunknown <serg@serg.mysql.com>2002-11-08 22:22:23 +0100
commit93b95819daba16ce6ac2d915f34bae3c51be939b (patch)
tree1b504b57d7fb709972178808eac6be65fd25fca8 /sql/sql_table.cc
parentf76bf0d9db956b10d149d86f843b7d9ff305eee3 (diff)
downloadmariadb-git-93b95819daba16ce6ac2d915f34bae3c51be939b.tar.gz
corrected error message for OPTIMIZE/ANALYZE/etc,
also for InnoDB that supports CHECK table but not REPAIR
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 36aa31e7553..1e7614ccc95 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1167,8 +1167,13 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
switch (result_code) {
case HA_ADMIN_NOT_IMPLEMENTED:
- net_store_data(packet, "error");
- net_store_data(packet, ER(ER_CHECK_NOT_IMPLEMENTED));
+ {
+ char buf[ERRMSGSIZE+20];
+ my_snprintf(buf, ERRMSGSIZE,
+ ER(ER_CHECK_NOT_IMPLEMENTED), operator_name);
+ net_store_data(packet, "error");
+ net_store_data(packet, buf);
+ }
break;
case HA_ADMIN_OK: