summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/s3/alter2.result
blob: 8d2cae035c95c67c0e9772059f36350be9c9b379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# MDEV-19575 Assertion `page_st == 1' failed upon SELECT from S3
# table which is being converted into Aria
#
CREATE TABLE t1 (f INT);
insert into t1 values (1),(2);
ALTER TABLE t1 ENGINE=S3;
select * from t1;
f
1
2
connect  con1,localhost,root,,$database;
ALTER TABLE t1 ENGINE=Aria;
connection default;
SELECT * FROM t1;
f
1
2
connection con1;
disconnect con1;
connection default;
DROP TABLE t1;
#
# MDEV-20302 Server hangs upon concurrent SELECT from partitioned S3
# table
#
CREATE TABLE t1 (
pk INT AUTO_INCREMENT,
c CHAR(12),
PRIMARY KEY(pk),
KEY(c)
) ENGINE=Aria
PARTITION BY KEY(pk) PARTITIONS 2;
CREATE VIEW v1 AS SELECT * FROM t1;
INSERT INTO t1 VALUES (NULL,'ill'),(NULL,'loop');
ALTER TABLE t1 ENGINE=S3;
connect  con1,localhost,root,,$database;
SELECT * FROM t1 WHERE c BETWEEN 'bar' AND 'foo';
connection default;
SELECT pk FROM v1;
pk
1
2
connection con1;
pk	c
disconnect con1;
connection default;
DROP VIEW v1;
DROP TABLE t1;