1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

corrected error message for OPTIMIZE/ANALYZE/etc,

also for InnoDB that supports CHECK table but not REPAIR
This commit is contained in:
unknown
2002-11-08 22:22:23 +01:00
parent f76bf0d9db
commit 93b95819da
23 changed files with 29 additions and 24 deletions

View File

@ -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: