summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-04-06 19:43:35 +0300
committerunknown <monty@mysql.com>2005-04-06 19:43:35 +0300
commit7503894ab5ad6017e6a050ed942c9a60dddddcba (patch)
tree22e52dde149dd54691424a98e931b6247fbca16b /mysql-test
parentd958b6361b0423a1730d863f8d8365430b12b0b2 (diff)
downloadmariadb-git-7503894ab5ad6017e6a050ed942c9a60dddddcba.tar.gz
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
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/drop.result4
-rw-r--r--mysql-test/r/kill.result2
-rw-r--r--mysql-test/t/kill.test2
3 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/r/drop.result b/mysql-test/r/drop.result
index b91cc89cfea..979e5d48871 100644
--- a/mysql-test/r/drop.result
+++ b/mysql-test/r/drop.result
@@ -30,13 +30,13 @@ table7, table8, table9, table10, table11, table12, table13,
table14, table15, table16, table17, table18, table19, table20,
table21, table22, table23, table24, table25, table26, table27,
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,
table7, table8, table9, table10, table11, table12, table13,
table14, table15, table16, table17, table18, table19, table20,
table21, table22, table23, table24, table25, table26, table27,
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;
drop database mysqltest;
flush tables with read lock;
diff --git a/mysql-test/r/kill.result b/mysql-test/r/kill.result
index 049281ad5d4..754568093ff 100644
--- a/mysql-test/r/kill.result
+++ b/mysql-test/r/kill.result
@@ -6,7 +6,7 @@ select ((@id := kill_id) - kill_id) from t1;
0
kill @id;
select 1;
-ERROR HY000: MySQL server has gone away
+Got one of the listed errors
select ((@id := kill_id) - kill_id) from t1;
((@id := kill_id) - kill_id)
0
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test
index 6744a212828..37e11e14df5 100644
--- a/mysql-test/t/kill.test
+++ b/mysql-test/t/kill.test
@@ -27,7 +27,7 @@ connection con1;
--disable_reconnect
# this statement should fail
---error 2006
+--error 2006,2013
select 1;
--enable_reconnect
# this should work, and we should have a new connection_id()