Show all generated warnings in SHOW ERROR

Previously we only stored the first given error (the error sent to the client)
This commit is contained in:
monty@mysql.com 2005-02-24 23:33:42 +02:00
commit cd78e701a5
24 changed files with 115 additions and 57 deletions

View file

@ -27,11 +27,15 @@ drop table t1;
repair table t1 use_frm;
Table Op Msg_type Msg_text
test.t1 repair error Table 'test.t1' doesn't exist
Warnings:
Error 1146 Table 'test.t1' doesn't exist
create table t1 engine=myisam SELECT 1,"table 1";
flush tables;
repair table t1;
Table Op Msg_type Msg_text
test.t1 repair error Incorrect file format 't1'
Warnings:
Error 130 Incorrect file format 't1'
repair table t1 use_frm;
Table Op Msg_type Msg_text
test.t1 repair warning Number of rows changed from 0 to 1