Commit 4409e04d authored by Daniel Black's avatar Daniel Black

correct server side error messages

parent 9b067a3e
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
// the following is for checking tables // the following is for checking tables
#define HA_ADMIN_VIEW_REPAIR_IS_DONE 2
#define HA_ADMIN_ALREADY_DONE 1 #define HA_ADMIN_ALREADY_DONE 1
#define HA_ADMIN_OK 0 #define HA_ADMIN_OK 0
#define HA_ADMIN_NOT_IMPLEMENTED -1 #define HA_ADMIN_NOT_IMPLEMENTED -1
...@@ -57,7 +56,6 @@ ...@@ -57,7 +56,6 @@
#define HA_ADMIN_NEEDS_UPGRADE -10 #define HA_ADMIN_NEEDS_UPGRADE -10
#define HA_ADMIN_NEEDS_ALTER -11 #define HA_ADMIN_NEEDS_ALTER -11
#define HA_ADMIN_NEEDS_CHECK -12 #define HA_ADMIN_NEEDS_CHECK -12
#define HA_ADMIN_NEEDS_REPAIR -13
/* Bits in table_flags() to show what database can do */ /* Bits in table_flags() to show what database can do */
......
...@@ -6565,9 +6565,3 @@ ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT ...@@ -6565,9 +6565,3 @@ ER_QUERY_EXCEEDED_ROWS_EXAMINED_LIMIT
ER_NO_SUCH_TABLE_IN_ENGINE 42S02 ER_NO_SUCH_TABLE_IN_ENGINE 42S02
eng "Table '%-.192s.%-.192s' doesn't exist in engine" eng "Table '%-.192s.%-.192s' doesn't exist in engine"
swe "Det finns ingen tabell som heter '%-.192s.%-.192s' i handlern" swe "Det finns ingen tabell som heter '%-.192s.%-.192s' i handlern"
ER_NO_MARIADB_SERVER_FIELD
eng "view '%-.192s.%-.192s' has no field mariadb server in its .frm file"
ER_VIEW_REPAIR_IS_DONE
eng "view is repaired"
ER_NEEDS_REPAIR
eng "needs repair"
...@@ -879,22 +879,6 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables, ...@@ -879,22 +879,6 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
fatal_error=1; fatal_error=1;
break; break;
} }
case HA_ADMIN_VIEW_REPAIR_IS_DONE:
{
protocol->store(STRING_WITH_LEN("status"), system_charset_info);
protocol->store(ER(ER_VIEW_REPAIR_IS_DONE),
strlen(ER(ER_VIEW_REPAIR_IS_DONE)),
system_charset_info);
break;
}
case HA_ADMIN_NEEDS_REPAIR:
{
protocol->store(STRING_WITH_LEN("status"), system_charset_info);
protocol->store(ER(ER_NEEDS_REPAIR),
strlen(ER(ER_NEEDS_REPAIR)),
system_charset_info);
break;
}
default: // Probably HA_ADMIN_INTERNAL_ERROR default: // Probably HA_ADMIN_INTERNAL_ERROR
{ {
......
...@@ -3023,7 +3023,6 @@ bool open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root, ...@@ -3023,7 +3023,6 @@ bool open_table(THD *thd, TABLE_LIST *table_list, MEM_ROOT *mem_root,
else if (table_list->open_strategy == TABLE_LIST::OPEN_STUB) else if (table_list->open_strategy == TABLE_LIST::OPEN_STUB)
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
retry_share: retry_share:
mysql_mutex_lock(&LOCK_open); mysql_mutex_lock(&LOCK_open);
......
...@@ -882,7 +882,7 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum, ...@@ -882,7 +882,7 @@ int mariadb_fix_view(THD *thd, TABLE_LIST *view, bool wrong_checksum,
"MERGE":"TEMPTABLE"); "MERGE":"TEMPTABLE");
DBUG_RETURN(HA_ADMIN_VIEW_REPAIR_IS_DONE); DBUG_RETURN(HA_ADMIN_OK);
} }
...@@ -2049,11 +2049,11 @@ int view_check(THD *thd, TABLE_LIST *view, HA_CHECK_OPT *check_opt) ...@@ -2049,11 +2049,11 @@ int view_check(THD *thd, TABLE_LIST *view, HA_CHECK_OPT *check_opt)
!view->mariadb_version)) !view->mariadb_version))
{ {
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE,
ER_NO_MARIADB_SERVER_FIELD, ER_TABLE_NEEDS_UPGRADE,
ER(ER_NO_MARIADB_SERVER_FIELD), ER(ER_TABLE_NEEDS_UPGRADE),
view->db, view->db,
view->table_name); view->table_name);
DBUG_RETURN(HA_ADMIN_NEEDS_REPAIR); DBUG_RETURN(HA_ADMIN_NEEDS_UPGRADE);
} }
DBUG_RETURN(HA_ADMIN_OK); DBUG_RETURN(HA_ADMIN_OK);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment