Bug #47381 | Wrong warning about crashed table, CREATE TABLE IF NOT EXISTS AS SELECT | ||
---|---|---|---|
Submitted: | 16 Sep 2009 16:00 | Modified: | 17 Sep 2009 10:41 |
Reporter: | Matthias Leich | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.1,5.4 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[16 Sep 2009 16:00]
Matthias Leich
[16 Sep 2009 16:12]
Valeriy Kravchuk
Thank you for the bug report. Verified just as described with recent 5.1.40 from bzr. Table is NOT corrupted really: mysql> CREATE TABLE IF NOT EXISTS t2 AS SELECT f1,f2,f3 FROM (SELECT * FROM t2) AS A; ERROR 1194 (HY000): Table 't2' is marked as crashed and should be repaired mysql> select * from t2; +------+------+----+ | f2 | f3 | f1 | +------+------+----+ | 2 | NULL | 1 | | 1 | 2 | 0 | +------+------+----+ 2 rows in set (0.00 sec) mysql> check table t2; +---------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +---------+-------+----------+----------+ | test.t2 | check | status | OK | +---------+-------+----------+----------+ 1 row in set (0.01 sec)
[17 Sep 2009 10:41]
Matthias Leich
Duplicate of Bug#46617 Bogus "table is marked as crashed and should be repaired"