mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@@ -9,14 +9,11 @@ INSERT INTO t2 VALUES(1);
|
||||
SELECT * FROM t1;
|
||||
ERROR 42000: Unknown storage engine 'InnoDB'
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
0
|
||||
2
|
||||
ERROR 42S02: Table 'test.t1' doesn't exist in engine
|
||||
SELECT * FROM t2;
|
||||
a
|
||||
1
|
||||
CHECK TABLE t1,t2;
|
||||
CHECK TABLE t2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
test.t2 check status OK
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
@@ -59,6 +59,8 @@ truncate table t2;
|
||||
ERROR HY000: Table 't2' is read only
|
||||
drop table t2;
|
||||
ERROR HY000: Table 't2' is read only
|
||||
create schema db;
|
||||
drop schema db;
|
||||
show tables;
|
||||
Tables_in_test
|
||||
t1
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
CREATE TABLE t1 (pk INT PRIMARY KEY, c CHAR(255))ENGINE=InnoDB STATS_PERSISTENT=0;
|
||||
SET GLOBAL INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG = 2;
|
||||
INSERT INTO t1 VALUES(1, 'sql'), (2, 'server'), (3, 'mariadb'),
|
||||
(4, 'mariadb'), (5, 'test1'), (6, 'test2'), (7, 'test3'),
|
||||
(8, 'test4'), (9, 'test5'), (10, 'test6'), (11, 'test7'),
|
||||
(12, 'test8');
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
12
|
||||
UPDATE t1 SET c='best8' WHERE pk=12;
|
||||
# Kill the server
|
||||
# Corrupt the pages
|
||||
SELECT * FROM t1 WHERE PK = 1;
|
||||
ERROR 42000: Unknown storage engine 'InnoDB'
|
||||
SELECT * FROM t1 WHERE PK = 1;
|
||||
pk c
|
||||
1 sql
|
||||
SELECT * FROM t1 WHERE pk = 12;
|
||||
ERROR HY000: Index for table 't1' is corrupt; try to repair it
|
||||
DROP TABLE t1;
|
||||
Reference in New Issue
Block a user