From b17e202d3c9de45c0424de8ebcb5e3001b1bf625 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 22 Nov 2000 03:45:02 +0200 Subject: [PATCH] Split error message for crashed table to 3 different error messages. Fixes for Windows Docs/manual.texi: Added things to the Windows section client/mysql.cc: Fixes to get Jani's changes to work on Windows include/myisam.h: Added chk_status() include/mysqld_error.h: Split error message for crashed table to 3 different error messages myisam/mi_check.c: Added chk_status() myisam/myisamchk.c: Added chk_status(). This gives us better error messages when the table is marked as 'crashed' sql/ha_myisam.cc: Better error messages if the table is marked as crashed sql/handler.cc: Better error messages if the table is marked as crashed sql/share/czech/errmsg.sys: Better error messages if the table is marked as crashed sql/share/czech/errmsg.txt: Better error messages if the table is marked as crashed sql/share/danish/errmsg.sys: Better error messages if the table is marked as crashed sql/share/danish/errmsg.txt: Better error messages if the table is marked as crashed sql/share/dutch/errmsg.sys: Better error messages if the table is marked as crashed sql/share/dutch/errmsg.txt: Better error messages if the table is marked as crashed sql/share/english/errmsg.sys: Better error messages if the table is marked as crashed sql/share/english/errmsg.txt: Better error messages if the table is marked as crashed sql/share/estonian/errmsg.sys: Better error messages if the table is marked as crashed sql/share/estonian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/french/errmsg.sys: Better error messages if the table is marked as crashed sql/share/french/errmsg.txt: Better error messages if the table is marked as crashed sql/share/german/errmsg.sys: Better error messages if the table is marked as crashed sql/share/german/errmsg.txt: Better error messages if the table is marked as crashed sql/share/greek/errmsg.sys: Better error messages if the table is marked as crashed sql/share/greek/errmsg.txt: Better error messages if the table is marked as crashed sql/share/hungarian/errmsg.sys: Better error messages if the table is marked as crashed sql/share/hungarian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/italian/errmsg.sys: Better error messages if the table is marked as crashed sql/share/italian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/japanese/errmsg.sys: Better error messages if the table is marked as crashed sql/share/japanese/errmsg.txt: Better error messages if the table is marked as crashed sql/share/korean/errmsg.sys: Better error messages if the table is marked as crashed sql/share/korean/errmsg.txt: Better error messages if the table is marked as crashed sql/share/norwegian-ny/errmsg.txt: Better error messages if the table is marked as crashed sql/share/norwegian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/polish/errmsg.sys: Better error messages if the table is marked as crashed sql/share/polish/errmsg.txt: Better error messages if the table is marked as crashed sql/share/portuguese/errmsg.sys: Better error messages if the table is marked as crashed sql/share/portuguese/errmsg.txt: Better error messages if the table is marked as crashed sql/share/romanian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/russian/errmsg.sys: Better error messages if the table is marked as crashed sql/share/russian/errmsg.txt: Better error messages if the table is marked as crashed sql/share/slovak/errmsg.sys: Better error messages if the table is marked as crashed sql/share/slovak/errmsg.txt: Better error messages if the table is marked as crashed sql/share/spanish/errmsg.sys: Better error messages if the table is marked as crashed sql/share/spanish/errmsg.txt: Better error messages if the table is marked as crashed sql/share/swedish/errmsg.OLD: Better error messages if the table is marked as crashed sql/share/swedish/errmsg.sys: Better error messages if the table is marked as crashed sql/share/swedish/errmsg.txt: Better error messages if the table is marked as crashed sql/sql_table.cc: Fix for gcc 2.7.2 --- Docs/manual.texi | 6 +++ client/mysql.cc | 61 +++++++++++++++++------------- include/myisam.h | 1 + include/mysqld_error.h | 4 +- myisam/mi_check.c | 20 ++++++++++ myisam/myisamchk.c | 9 +---- sql/ha_myisam.cc | 10 +++-- sql/handler.cc | 7 +++- sql/share/czech/errmsg.sys | Bin 10317 -> 10452 bytes sql/share/czech/errmsg.txt | 2 + sql/share/danish/errmsg.sys | Bin 10266 -> 10401 bytes sql/share/danish/errmsg.txt | 2 + sql/share/dutch/errmsg.sys | Bin 10482 -> 10617 bytes sql/share/dutch/errmsg.txt | 2 + sql/share/english/errmsg.sys | Bin 9647 -> 9782 bytes sql/share/english/errmsg.txt | 2 + sql/share/estonian/errmsg.sys | Bin 9623 -> 9758 bytes sql/share/estonian/errmsg.txt | 2 + sql/share/french/errmsg.sys | Bin 10088 -> 10223 bytes sql/share/french/errmsg.txt | 2 + sql/share/german/errmsg.sys | Bin 11109 -> 11244 bytes sql/share/german/errmsg.txt | 2 + sql/share/greek/errmsg.sys | Bin 11694 -> 11829 bytes sql/share/greek/errmsg.txt | 2 + sql/share/hungarian/errmsg.sys | Bin 10603 -> 10738 bytes sql/share/hungarian/errmsg.txt | 2 + sql/share/italian/errmsg.sys | Bin 11212 -> 11347 bytes sql/share/italian/errmsg.txt | 2 + sql/share/japanese/errmsg.sys | Bin 10394 -> 10529 bytes sql/share/japanese/errmsg.txt | 2 + sql/share/korean/errmsg.sys | Bin 10524 -> 10659 bytes sql/share/korean/errmsg.txt | 2 + sql/share/norwegian-ny/errmsg.txt | 2 + sql/share/norwegian/errmsg.txt | 2 + sql/share/polish/errmsg.sys | Bin 10282 -> 10417 bytes sql/share/polish/errmsg.txt | 2 + sql/share/portuguese/errmsg.sys | Bin 10207 -> 10342 bytes sql/share/portuguese/errmsg.txt | 2 + sql/share/romanian/errmsg.txt | 2 + sql/share/russian/errmsg.sys | Bin 10101 -> 10236 bytes sql/share/russian/errmsg.txt | 2 + sql/share/slovak/errmsg.sys | Bin 9867 -> 10002 bytes sql/share/slovak/errmsg.txt | 2 + sql/share/spanish/errmsg.sys | Bin 10223 -> 10358 bytes sql/share/spanish/errmsg.txt | 2 + sql/share/swedish/errmsg.OLD | 4 ++ sql/share/swedish/errmsg.sys | Bin 9960 -> 10103 bytes sql/share/swedish/errmsg.txt | 2 + sql/sql_table.cc | 4 +- 49 files changed, 128 insertions(+), 40 deletions(-) diff --git a/Docs/manual.texi b/Docs/manual.texi index 0172428a195..a3ddb0de816 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -8262,6 +8262,12 @@ following information: @example 127.0.0.1 localhost @end example + +@item @code{ALTER TABLE} +While you are doing an @code{ALTER TABLE} the table is locked from usage +by other threads. This has to do with the fact that you on Windows can't +delete a file that is in use by another threads. (We may in the future +find some way to go around this problem). @end table Here are some open issues for anyone who might want to help us with the Windows diff --git a/client/mysql.cc b/client/mysql.cc index e5246aac6c5..b7a41a122eb 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -145,14 +145,18 @@ void tee_putc(int c, FILE *file); static int get_options(int argc,char **argv); static int com_quit(String *str,char*), com_go(String *str,char*), com_ego(String *str,char*), - com_edit(String *str,char*), com_print(String *str,char*), + com_print(String *str,char*), com_help(String *str,char*), com_clear(String *str,char*), com_connect(String *str,char*), com_status(String *str,char*), com_use(String *str,char*), com_source(String *str, char*), - com_rehash(String *str, char*), com_pager(String *str, char*), - com_nopager(String *str, char*), com_tee(String *str, char*), + com_rehash(String *str, char*), com_tee(String *str, char*), com_notee(String *str, char*); +#ifndef __WIN__ +static int com_nopager(String *str, char*), com_pager(String *str, char*), + com_edit(String *str,char*); +#endif + static int read_lines(bool execute_commands); static int sql_connect(char *host,char *database,char *user,char *password, uint silent); @@ -180,7 +184,9 @@ static COMMANDS commands[] = { { "clear", 'c', com_clear, 0, "Clear command."}, { "connect",'r', com_connect,1, "Reconnect to the server. Optional arguments are db and host." }, +#ifndef __WIN__ { "edit", 'e', com_edit, 0, "Edit command with $EDITOR."}, +#endif { "ego", 'G', com_ego, 0, "Send command to mysql server, display result vertically."}, { "exit", 'q', com_quit, 0, "Exit mysql. Same as quit."}, @@ -764,6 +770,16 @@ static int read_lines(bool execute_commands) } else { +#ifdef __WIN__ + if (opt_outfile && glob_buffer.is_empty()) + fflush(OUTFILE); + tee_fputs(glob_buffer.is_empty() ? "mysql> " : + !in_string ? " -> " : + in_string == '\'' ? + " '> " : " \"> ",stdout); + linebuffer[0]=(char) sizeof(linebuffer); + line=_cgets(linebuffer); +#else if (opt_outfile) { if (glob_buffer.is_empty()) @@ -773,14 +789,6 @@ static int read_lines(bool execute_commands) in_string == '\'' ? " '> " : " \"> ", OUTFILE); } -#ifdef __WIN__ - tee_fprintf(stdout, glob_buffer.is_empty() ? "mysql> " : - !in_string ? " -> " : - in_string == '\'' ? - " '> " : " \"> "); - linebuffer[0]=(char) sizeof(linebuffer); - line=_cgets(linebuffer); -#else line=readline((char*) (glob_buffer.is_empty() ? "mysql> " : !in_string ? " -> " : in_string == '\'' ? @@ -1476,7 +1484,7 @@ static void end_pager() static void init_tee() { - if (!(OUTFILE= my_fopen(outfile,O_APPEND | O_WRONLY | O_BINARY,MYF(MY_WME)))) + if (!(OUTFILE= my_fopen(outfile, O_APPEND | O_WRONLY, MYF(MY_WME)))) { opt_outfile=0; init_pager(); @@ -1727,7 +1735,7 @@ com_tee(String *buffer, char *line __attribute__((unused))) init_tee(); opt_outfile=1; } - tee_fprintf(stdout, "Outfile '%s' is in use now.\n", outfile); + tee_fprintf(stdout, "Logging to file '%s'\n", outfile); return 0; } @@ -1742,6 +1750,11 @@ com_notee(String *buffer __attribute__((unused)), return 0; } +/* +** Sorry, this command is not available in Windows. +*/ + +#ifndef __WIN__ static int com_pager(String *buffer, char *line __attribute__((unused))) { @@ -1749,10 +1762,6 @@ com_pager(String *buffer, char *line __attribute__((unused))) if (status.batch) return 0; -#ifdef __WIN__ - tee_fprintf(stdout, "Sorry, this command is not available in Windows.\n"); - return 0; -#endif /* Skip space from file name */ while (isspace(*line)) line++; @@ -1783,28 +1792,27 @@ com_pager(String *buffer, char *line __attribute__((unused))) return 0; } + static int com_nopager(String *buffer __attribute__((unused)), char *line __attribute__((unused))) { -#ifdef __WIN__ - tee_fprintf(stdout, "This command has no function in Windows.\n"); - return 0; -#endif strmov(pager, "stdout"); opt_nopager=1; tee_fprintf(stdout, "PAGER set to stdout\n"); return 0; } +#endif +/* +** Sorry, you can't send the result to an editor in Win32 +*/ + +#ifndef __WIN__ static int com_edit(String *buffer,char *line __attribute__((unused))) { -#ifdef __WIN__ - put_info("Sorry, you can't send the result to an editor in Win32", - INFO_ERROR); -#else char filename[FN_REFLEN],buff[160]; int fd,tmp; const char *editor; @@ -1838,9 +1846,10 @@ com_edit(String *buffer,char *line __attribute__((unused))) (void) my_close(fd,MYF(0)); (void) my_delete(filename,MYF(MY_WME)); err: -#endif return 0; } +#endif + /* If arg is given, exit without errors. This happens on command 'quit' */ diff --git a/include/myisam.h b/include/myisam.h index 0183098a385..d198d6af80e 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -353,6 +353,7 @@ typedef struct st_mi_sortinfo { /* functions in mi_check */ void myisamchk_init(MI_CHECK *param); +int chk_status(MI_CHECK *param, MI_INFO *info); int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag); int chk_size(MI_CHECK *param, MI_INFO *info); int chk_key(MI_CHECK *param, MI_INFO *info); diff --git a/include/mysqld_error.h b/include/mysqld_error.h index 718b734ef6d..59623210473 100644 --- a/include/mysqld_error.h +++ b/include/mysqld_error.h @@ -194,4 +194,6 @@ #define ER_FT_MATCHING_KEY_NOT_FOUND 1191 #define ER_LOCK_OR_ACTIVE_TRANSACTION 1192 #define ER_UNKNOWN_SYSTEM_VARIABLE 1193 -#define ER_ERROR_MESSAGES 194 +#define ER_CRASHED_ON_USAGE 1194 +#define ER_CRASHED_ON_REPAIR 1195 +#define ER_ERROR_MESSAGES 196 diff --git a/myisam/mi_check.c b/myisam/mi_check.c index 253abbbcffb..a38a45f9438 100644 --- a/myisam/mi_check.c +++ b/myisam/mi_check.c @@ -97,6 +97,26 @@ void myisamchk_init(MI_CHECK *param) param->start_check_pos=0; } + /* Check the status flags for the table */ + +int chk_status(MI_CHECK *param, register MI_INFO *info) +{ + MYISAM_SHARE *share=info->s; + if (mi_is_crashed_on_repair(info)) + mi_check_print_warning(param, + "Table is marked as crashed and last repair failed"); + else if (mi_is_crashed(info)) + mi_check_print_warning(param, + "Table is marked as crashed"); + if (share->state.open_count) + { + mi_check_print_warning(param, + "%d clients is using or hasn't closed the table properly", + share->state.open_count); + } + return 0; +} + /* Check delete links */ int chk_del(MI_CHECK *param, register MI_INFO *info, uint test_flag) diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c index d045bf0018b..f2b3f337c67 100644 --- a/myisam/myisamchk.c +++ b/myisam/myisamchk.c @@ -196,7 +196,7 @@ static struct option long_options[] = static void print_version(void) { - printf("%s Ver 1.37 for %s at %s\n",my_progname,SYSTEM_TYPE, + printf("%s Ver 1.38 for %s at %s\n",my_progname,SYSTEM_TYPE, MACHINE_TYPE); } @@ -739,12 +739,7 @@ static int myisamchk(MI_CHECK *param, my_string filename) printf("Data records: %7s Deleted blocks: %7s\n", llstr(info->state->records,llbuff), llstr(info->state->del,llbuff2)); - if (share->state.open_count) - { - mi_check_print_warning(param, - "%d clients is using or hasn't closed the table properly", - share->state.open_count); - } + error =chk_status(param,info); share->state.key_map &=param->keys_in_use; error =chk_size(param,info); if (!error || !(param->testflag & (T_FAST | T_FORCE_CREATE))) diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 630a672d346..7f658303a4c 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -259,6 +259,7 @@ int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt) (uint) (share->global_changed ? 1 : 0))))) return HA_ADMIN_ALREADY_DONE; + error = chk_status(¶m, file); // Not fatal error = chk_size(¶m, file); if (!error) error |= chk_del(¶m, file, param.testflag); @@ -266,8 +267,10 @@ int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt) error = chk_key(¶m, file); if (!error) { - if (!check_opt->quick && - (share->options & (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD))) + if ((!check_opt->quick && + (share->options & + (HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD))) || + mi_is_crashed(file)) { init_io_cache(¶m.read_cache, file->dfile, my_default_record_cache_size, READ_CACHE, @@ -281,7 +284,8 @@ int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt) if ((share->state.changed & (STATE_CHANGED | STATE_CRASHED_ON_REPAIR | STATE_CRASHED | STATE_NOT_ANALYZED)) || - (param.testflag & T_STATISTICS)) + (param.testflag & T_STATISTICS) || + mi_is_crashed(file)) { file->update|=HA_STATE_CHANGED | HA_STATE_ROW_CHANGED; pthread_mutex_lock(&share->intern_lock); diff --git a/sql/handler.cc b/sql/handler.cc index f1ec7ea7e09..8987bed4157 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -543,9 +543,14 @@ void handler::print_error(int error, myf errflag) textno=ER_CHECKREAD; break; case HA_ERR_CRASHED: - case HA_ERR_CRASHED_ON_REPAIR: textno=ER_NOT_KEYFILE; break; + case HA_ERR_CRASHED_ON_USAGE: + textno=ER_CRASHED_ON_USAGE; + break; + case HA_ERR_CRASHED_ON_REPAIR: + textno=ER_CRASHED_ON_REPAIR; + break; case HA_ERR_OUT_OF_MEM: my_error(ER_OUT_OF_RESOURCES,errflag); DBUG_VOID_RETURN; diff --git a/sql/share/czech/errmsg.sys b/sql/share/czech/errmsg.sys index 2d048a6f6ba5fde1452466100ecd5fd60f7ed03b..39221d1ab6982fe8e8ed27be889bb8e660c5af41 100644 GIT binary patch delta 160 zcmX>ba3zrQ-#;csMg|@ABO5tqGcvDKd$M^k<0`fKki?{%R0VZaT|G0CVs(YgVujqq zqU_WZg~VcocZKW@Ii?+qii#W4T&=NMce>s)D+zuAZ4mvARNLu|jTQ zQFdyILSnH(a#3P&28fxLqEMWXUz(Gmkd&%WlvK&;lB#NrYKjl|ND{M^Kn S%w&5_s1XWjiJ2@pK!X5e)iz@Q delta 23 fcmZ1&I4gkj-#;csMusxALmN3~Gj3kNSf&O5Y`zGR diff --git a/sql/share/danish/errmsg.txt b/sql/share/danish/errmsg.txt index 3881a0c525a..e42b9d0e854 100644 --- a/sql/share/danish/errmsg.txt +++ b/sql/share/danish/errmsg.txt @@ -198,3 +198,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/dutch/errmsg.sys b/sql/share/dutch/errmsg.sys index 068499d48fd6a1e7e54719e45d85c7df3f61598e..92a5833e2c61b2cb1fdcb06e793e6c184418e06b 100644 GIT binary patch delta 160 zcmewq_%n#}-#;csMuv;(M>cZKW@PqL@7%nY(O>GN-aptEJ{sbAXaNmVsVLrMq+76er{q( SX0p8|)Ch&N#7vePpg{n9=Qel% delta 23 fcmewv^eK?@-#;csMg~9iLmN3~Gj3kN=%)?BO5tqGqP~2xT$Pj!pN;sACj1qld7Pus;g&aQmn3!S*(zo zSd^WbqL5gukX)2loB?9yr6?3<GNMgz>X-eMn+bPO5^ss;-`yNwK;@X0bwU zVo`Q#ib7(sLUK`JaR!K)m!eRdkzbmVqL7rTP?TDbm|2vX!a%InoW$Z11&zeglKkAn TlFVd#O{ftHX^ELEIY5H|W#cwv delta 23 fcmbQ|Gu@l>-#;csMuyMIhcm~eMn+bPO5^ss;-`yNwK;@X0bwU zVo`Q#ib7(sLUK`JaR!K)m!eRdkzbmVqL7rTP?TDbm|2vX!a%InoW$Z11&zeglKkAn TlFVd#O{ftHX^ELEIY5H|e(g4T delta 23 fcmewq{5pv9-#;csMuy|+hcTemR2k-#;csMuyc|M>cZKW@OgTO5VJfQB$ivBrz!`RY6@>GN-aptEJ{sbAXaNmVsVLrMq+76er{q( SX0p8|)Ch&N#7vePpg{lzRW+#q delta 23 fcmcZ{aVDJe-#;csMg|S7LmN3~Gj3kNsG$V_a%c!} diff --git a/sql/share/italian/errmsg.txt b/sql/share/italian/errmsg.txt index a84ea10af53..8fd4358784e 100644 --- a/sql/share/italian/errmsg.txt +++ b/sql/share/italian/errmsg.txt @@ -195,3 +195,5 @@ "Impossibile trovare un indice FULLTEXT che corrisponda all'elenco delle colonne", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/japanese/errmsg.sys b/sql/share/japanese/errmsg.sys index f437801bf62a0f32fdf3d2d8d7d0da02f9871450..78fe9fba669c6df9924573dcb46e7eee26a70da4 100644 GIT binary patch delta 161 zcmbOgxG;$G-#;csMutlDBO5tqGqQYBGgRNagz=kNeMn+bPO5^ss;-`yNwK;@X0bwU zVo`Q#ib7(sLUK`JaR!K)m!eRdkzbmVqL7rTP?TDbm|2vX!a%InoW$Z11&zeglKkAn TlFVd#O{ftHX^ELEIY5H|epNP( delta 23 fcmZ1&G%Jwv-#;csMuu-{hccZKW@N5V-@JJ-W2Jh1NMce>s)D+zuAZ4mvARNLu|jTQ zQFdyILSnH(a#3P&28fxLqEMWXUz(Gmkd&%WlvK&;lB#NrYKjl|ND{M^Kn S%w&5_s1XWjiJ2@pK!X5p*EV(l delta 23 fcmZ1+JST|r-#;csMurOYLmN3~Gj3kNSfLI8ZITF} diff --git a/sql/share/korean/errmsg.txt b/sql/share/korean/errmsg.txt index d373294295f..f884a1b13f2 100644 --- a/sql/share/korean/errmsg.txt +++ b/sql/share/korean/errmsg.txt @@ -195,3 +195,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/norwegian-ny/errmsg.txt b/sql/share/norwegian-ny/errmsg.txt index 5581c951ac3..8de66328a05 100644 --- a/sql/share/norwegian-ny/errmsg.txt +++ b/sql/share/norwegian-ny/errmsg.txt @@ -197,3 +197,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/norwegian/errmsg.txt b/sql/share/norwegian/errmsg.txt index d41b71a0ac7..e5554e0bb43 100644 --- a/sql/share/norwegian/errmsg.txt +++ b/sql/share/norwegian/errmsg.txt @@ -197,3 +197,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/polish/errmsg.sys b/sql/share/polish/errmsg.sys index ab4ed6adbf943a4e21cc2176f55d906219d0278f..547e5a5d60db28e70613974770545c7ded049647 100644 GIT binary patch delta 160 zcmZ1#urZMH-#;csMg~sxBO5tqGcvcS9o)Q_v0be`Brz!`RY6@>GN-aptEJ{sbAXaNmVsVLrMq+76er{q( SX0p8|)Ch&N#7vePpg{l!i8aIk delta 23 fcmdlOxGI42-#;csMus-ELmN3~Gj3kN*ro;ma9#+~ diff --git a/sql/share/polish/errmsg.txt b/sql/share/polish/errmsg.txt index 6fbb550ebca..4338fc49971 100644 --- a/sql/share/polish/errmsg.txt +++ b/sql/share/polish/errmsg.txt @@ -199,3 +199,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/portuguese/errmsg.sys b/sql/share/portuguese/errmsg.sys index 040cdea0b478619c98561ab3563ebf3b218a0be4..35b3ba1d3cdfe8833f6f9ed76ce261d1ed2007ac 100644 GIT binary patch delta 160 zcmccb|15y>-#;csMuvTAM>cZKW@NTjE8D!7(MGL4Brz!`RY6@>GN-aptEJ{sbAXaNmVsVLrMq+76er{q( SX0p8|)Ch&N#7vePpg{mPQ#Jnp delta 23 fcmaDBaNnQv-#;csMh0uOLmN3~Gj3kNXsreSbv6j3 diff --git a/sql/share/portuguese/errmsg.txt b/sql/share/portuguese/errmsg.txt index 62289c3f2b9..ea9346be023 100644 --- a/sql/share/portuguese/errmsg.txt +++ b/sql/share/portuguese/errmsg.txt @@ -195,3 +195,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/romanian/errmsg.txt b/sql/share/romanian/errmsg.txt index bd1d0618027..7e301bc9b4d 100644 --- a/sql/share/romanian/errmsg.txt +++ b/sql/share/romanian/errmsg.txt @@ -199,3 +199,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/russian/errmsg.sys b/sql/share/russian/errmsg.sys index 7d57defb1b8a4331c85a7d815e364be0a74d24bb..3d32c61bd35dec8ca1cfec716ba8330754b8d2f9 100644 GIT binary patch delta 161 zcmezB_s5^}-#;csMurfzBO5tqGqPM%ju) delta 23 fcmbQ_*X_&s?;jH*Bg1o*LmN3~Gj3kN_*?}5Z^8*o diff --git a/sql/share/slovak/errmsg.txt b/sql/share/slovak/errmsg.txt index 24176719e1f..0dbac3a4d98 100644 --- a/sql/share/slovak/errmsg.txt +++ b/sql/share/slovak/errmsg.txt @@ -203,3 +203,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/spanish/errmsg.sys b/sql/share/spanish/errmsg.sys index fd0aeb829b17fd62f24b48dd58947b5a48193481..ebc069aefbd21cf7efc0f6d3c7f8d5425787482c 100644 GIT binary patch delta 160 zcmaFw|1E&?-#;csMuu~0M>cZKW@PqOYumh-(MPR5Brz!`RY6@>GN-aptEJ{sbAXaNmVsVLrMq+76er{q( SX0p8|)Ch&N#7vePpg{m`b2eW9 delta 23 fcmews@ZO*E-#;csMh0)SLmN3~Gj3kN=&c3-c-9Ey diff --git a/sql/share/spanish/errmsg.txt b/sql/share/spanish/errmsg.txt index cdf40b428d9..9393238c365 100644 --- a/sql/share/spanish/errmsg.txt +++ b/sql/share/spanish/errmsg.txt @@ -196,3 +196,5 @@ "Can't find FULLTEXT index matching the column list", "Can't execute the given command because you have active locked tables or an active transaction", "Unknown system variable '%-.64'", +"Table '%-.64s' is marked as crashed and should be repaired", +"Table '%-.64s' is marked as crashed and last (automatic?) repair failed", diff --git a/sql/share/swedish/errmsg.OLD b/sql/share/swedish/errmsg.OLD index bf5c48af10d..6f315fb456b 100644 --- a/sql/share/swedish/errmsg.OLD +++ b/sql/share/swedish/errmsg.OLD @@ -195,3 +195,7 @@ "Hittar inte ett FULLTEXT index i kolumnlistan", "Kan inte exekvera kommandot emedan du har en låst tabell eller an aktiv transaktion", "Okänd system variabel '%-.64'", +#ER_CRASHED_ON_USAGE +"Tabell '%-.64s' är crashad och bör repareras med REPAIR TABLE", +#ER_CRASHED_ON_REPAIR +"Tabell '%-.64s' är crashad och senast (automatiska?) reparation misslyckades", diff --git a/sql/share/swedish/errmsg.sys b/sql/share/swedish/errmsg.sys index aa35854cdbdf45925d1a7b508598e53c0111eb9b..cf773e61228c0bc1cd47863880498a4ab64ac360 100644 GIT binary patch delta 168 zcmaFi``wT8-#;csMuzjMM>cZKW@L6zZQ8t;(N(oRBrz#9Cr3eDRaeitype() == Item::FIELD_ITEM ? - ((Item_field *)item)->field : NULL) - ))) + ((Item_field *)item)->field : + (Field*) 0)))) DBUG_RETURN(0); extra_fields->push_back(cr_field); }