1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fixed errors found during review

mysql-test/r/drop.result:
  Made error message smaller to not get into trouble with clients with smaller error buffers
  The proper way to fix this is to generate a separate warning for each not found table if there was more than one table in the DROP
  but
mysql-test/r/kill.result:
  Portablity fix
mysql-test/t/kill.test:
  Portablity fix
mysys/my_sync.c:
  Fixed possible compiler warning
sql/records.cc:
  Fixed possible compiler warning
sql/share/errmsg.txt:
  Made error message smaller to not get into trouble with clients with smaller error buffers
sql/sql_class.cc:
  Don't put code in comments
sql/sql_show.cc:
  Cleanup
This commit is contained in:
unknown
2005-04-06 19:43:35 +03:00
parent d958b6361b
commit 7503894ab5
8 changed files with 34 additions and 33 deletions

View File

@ -30,13 +30,13 @@ table7, table8, table9, table10, table11, table12, table13,
table14, table15, table16, table17, table18, table19, table20, table14, table15, table16, table17, table18, table19, table20,
table21, table22, table23, table24, table25, table26, table27, table21, table22, table23, table24, table25, table26, table27,
table28; table28;
ERROR 42S02: Unknown table 'table1,table2,table3,table4,table5,table6,table7,table8,table9,table10,table11,table12,table13,table14,table15,table16,table17,table18,table19,table20,table21,table22,table23,table' ERROR 42S02: Unknown table 'table1,table2,table3,table4,table5,table6,table7,table8,table9,table10,table11,table12,table13,table'
drop table table1, table2, table3, table4, table5, table6, drop table table1, table2, table3, table4, table5, table6,
table7, table8, table9, table10, table11, table12, table13, table7, table8, table9, table10, table11, table12, table13,
table14, table15, table16, table17, table18, table19, table20, table14, table15, table16, table17, table18, table19, table20,
table21, table22, table23, table24, table25, table26, table27, table21, table22, table23, table24, table25, table26, table27,
table28, table29, table30; table28, table29, table30;
ERROR 42S02: Unknown table 'table1,table2,table3,table4,table5,table6,table7,table8,table9,table10,table11,table12,table13,table14,table15,table16,table17,table18,table19,table20,table21,table22,table23,table' ERROR 42S02: Unknown table 'table1,table2,table3,table4,table5,table6,table7,table8,table9,table10,table11,table12,table13,table'
use test; use test;
drop database mysqltest; drop database mysqltest;
flush tables with read lock; flush tables with read lock;

View File

@ -6,7 +6,7 @@ select ((@id := kill_id) - kill_id) from t1;
0 0
kill @id; kill @id;
select 1; select 1;
ERROR HY000: MySQL server has gone away Got one of the listed errors
select ((@id := kill_id) - kill_id) from t1; select ((@id := kill_id) - kill_id) from t1;
((@id := kill_id) - kill_id) ((@id := kill_id) - kill_id)
0 0

View File

@ -27,7 +27,7 @@ connection con1;
--disable_reconnect --disable_reconnect
# this statement should fail # this statement should fail
--error 2006 --error 2006,2013
select 1; select 1;
--enable_reconnect --enable_reconnect
# this should work, and we should have a new connection_id() # this should work, and we should have a new connection_id()

View File

@ -65,7 +65,7 @@ int my_sync(File fd, myf my_flags)
int er= errno; int er= errno;
if (!(my_errno= er)) if (!(my_errno= er))
my_errno= -1; /* Unknown error */ my_errno= -1; /* Unknown error */
if (my_flags & MY_IGNORE_BADFD && if ((my_flags & MY_IGNORE_BADFD) &&
(er == EBADF || er == EINVAL || er == EROFS)) (er == EBADF || er == EINVAL || er == EROFS))
res= 0; res= 0;
else if (my_flags & MY_WME) else if (my_flags & MY_WME)

View File

@ -131,7 +131,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
/* Condition pushdown to storage engine */ /* Condition pushdown to storage engine */
if (thd->variables.engine_condition_pushdown && if (thd->variables.engine_condition_pushdown &&
select && select->cond && select && select->cond &&
select->cond->used_tables() & table->map && (select->cond->used_tables() & table->map) &&
!table->file->pushed_cond) !table->file->pushed_cond)
table->file->cond_push(select->cond); table->file->cond_push(select->cond);

View File

@ -1214,30 +1214,30 @@ ER_TABLE_EXISTS_ERROR 42S01
swe "Tabellen '%-.64s' finns redan" swe "Tabellen '%-.64s' finns redan"
ukr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.64s' <20><><EFBFBD> <20><><EFBFBD>դ" ukr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.64s' <20><><EFBFBD> <20><><EFBFBD>դ"
ER_BAD_TABLE_ERROR 42S02 ER_BAD_TABLE_ERROR 42S02
cze "Nezn-B<>m<EFBFBD> tabulka '%-.180s'" cze "Nezn-B<>m<EFBFBD> tabulka '%-.100s'"
dan "Ukendt tabel '%-.180s'" dan "Ukendt tabel '%-.100s'"
nla "Onbekende tabel '%-.180s'" nla "Onbekende tabel '%-.100s'"
eng "Unknown table '%-.180s'" eng "Unknown table '%-.100s'"
jps "table '%-.180s' <20>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD>.", jps "table '%-.100s' <20>͂<EFBFBD><CD82><EFBFBD><EFBFBD>܂<EFBFBD><DC82><EFBFBD>.",
est "Tundmatu tabel '%-.180s'" est "Tundmatu tabel '%-.100s'"
fre "Table '%-.180s' inconnue" fre "Table '%-.100s' inconnue"
ger "Unbekannte Tabelle '%-.180s'" ger "Unbekannte Tabelle '%-.100s'"
greek "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.180s'" greek "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.100s'"
hun "Ervenytelen tabla: '%-.180s'" hun "Ervenytelen tabla: '%-.100s'"
ita "Tabella '%-.180s' sconosciuta" ita "Tabella '%-.100s' sconosciuta"
jpn "table '%-.180s' <20>Ϥ<EFBFBD><CFA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>." jpn "table '%-.100s' <20>Ϥ<EFBFBD><CFA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>."
kor "<22><><EFBFBD>̺<EFBFBD> '%-.180s'<27><> <20>˼<EFBFBD> <20><><EFBFBD><EFBFBD>" kor "<22><><EFBFBD>̺<EFBFBD> '%-.100s'<27><> <20>˼<EFBFBD> <20><><EFBFBD><EFBFBD>"
nor "Ukjent tabell '%-.180s'" nor "Ukjent tabell '%-.100s'"
norwegian-ny "Ukjent tabell '%-.180s'" norwegian-ny "Ukjent tabell '%-.100s'"
pol "Nieznana tabela '%-.180s'" pol "Nieznana tabela '%-.100s'"
por "Tabela '%-.180s' desconhecida" por "Tabela '%-.100s' desconhecida"
rum "Tabela '%-.180s' este invalida" rum "Tabela '%-.100s' este invalida"
rus "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.180s'" rus "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.100s'"
serbian "Nepoznata tabela '%-.180s'" serbian "Nepoznata tabela '%-.100s'"
slo "Nezn<7A>ma tabu<62>ka '%-.180s'" slo "Nezn<7A>ma tabu<62>ka '%-.100s'"
spa "Tabla '%-.180s' desconocida" spa "Tabla '%-.100s' desconocida"
swe "Ok<4F>nd tabell '%-.180s'" swe "Ok<4F>nd tabell '%-.100s'"
ukr "<22><>צ<EFBFBD><D7A6><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.180s'" ukr "<22><>צ<EFBFBD><D7A6><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '%-.100s'"
ER_NON_UNIQ_ERROR 23000 ER_NON_UNIQ_ERROR 23000
cze "Sloupec '%-.64s' v %s nen-B<> zcela jasn<73>" cze "Sloupec '%-.64s' v %s nen-B<> zcela jasn<73>"
dan "Felt: '%-.64s' i tabel %s er ikke entydigt" dan "Felt: '%-.64s' i tabel %s er ikke entydigt"

View File

@ -343,8 +343,9 @@ void THD::change_user(void)
void THD::cleanup(void) void THD::cleanup(void)
{ {
DBUG_ENTER("THD::cleanup"); DBUG_ENTER("THD::cleanup");
/* TODO uncomment the line below when binlog will be able to prepare */ #ifdef ENABLE_WHEN_BINLOG_WILL_BE_ABLE_TO_PREPARE
// if (transaction.xa_state != XA_PREPARED) if (transaction.xa_state != XA_PREPARED)
#endif
ha_rollback(this); ha_rollback(this);
if (locked_tables) if (locked_tables)
{ {

View File

@ -2312,7 +2312,7 @@ static int get_schema_column_record(THD *thd, struct st_table_list *tables,
} }
} }
#else #else
end=strmov(end,""); *end= 0;
#endif #endif
table->field[17]->store(tmp+1,end == tmp ? 0 : (uint) (end-tmp-1), cs); table->field[17]->store(tmp+1,end == tmp ? 0 : (uint) (end-tmp-1), cs);