Commit ba8ab6a7 authored by Igor Babaev's avatar Igor Babaev

Adjusted tests after the fix for bug mdev-9976.

Now ROWS is a reserved key word, so cannot be used
as an alias name.
parent 9073f9fd
...@@ -270,8 +270,8 @@ PARTITIONS 7; ...@@ -270,8 +270,8 @@ PARTITIONS 7;
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
COUNT(*) COUNT(*)
33 33
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
partition rows partition rows_cnt
0 2 0 2
1 5 1 5
2 5 2 5
...@@ -343,8 +343,8 @@ test.t1_will_crash repair status OK ...@@ -343,8 +343,8 @@ test.t1_will_crash repair status OK
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
COUNT(*) COUNT(*)
29 29
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
partition rows partition rows_cnt
1 4 1 4
2 5 2 5
3 5 3 5
...@@ -483,8 +483,8 @@ test.t1_will_crash repair status OK ...@@ -483,8 +483,8 @@ test.t1_will_crash repair status OK
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
COUNT(*) COUNT(*)
29 29
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
partition rows partition rows_cnt
1 4 1 4
2 4 2 4
3 5 3 5
......
...@@ -190,7 +190,7 @@ eval INSERT INTO t1_will_crash VALUES ...@@ -190,7 +190,7 @@ eval INSERT INTO t1_will_crash VALUES
('6 row 7 (crash before completely written to datafile)', 27, '$lt$lt'); ('6 row 7 (crash before completely written to datafile)', 27, '$lt$lt');
--enable_query_log --enable_query_log
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a; SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a;
FLUSH TABLES; FLUSH TABLES;
# testing p0, p1, p3, p6(1) # testing p0, p1, p3, p6(1)
...@@ -216,7 +216,7 @@ OPTIMIZE TABLE t1_will_crash; ...@@ -216,7 +216,7 @@ OPTIMIZE TABLE t1_will_crash;
CHECK TABLE t1_will_crash; CHECK TABLE t1_will_crash;
REPAIR TABLE t1_will_crash; REPAIR TABLE t1_will_crash;
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a; SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a;
FLUSH TABLES; FLUSH TABLES;
...@@ -282,7 +282,7 @@ SET @@optimizer_switch=@save_optimizer_switch; ...@@ -282,7 +282,7 @@ SET @@optimizer_switch=@save_optimizer_switch;
ALTER TABLE t1_will_crash CHECK PARTITION p6; ALTER TABLE t1_will_crash CHECK PARTITION p6;
ALTER TABLE t1_will_crash REPAIR PARTITION p6; ALTER TABLE t1_will_crash REPAIR PARTITION p6;
SELECT COUNT(*) FROM t1_will_crash; SELECT COUNT(*) FROM t1_will_crash;
SELECT (b % 7) AS `partition`, COUNT(*) AS rows FROM t1_will_crash GROUP BY (b % 7); SELECT (b % 7) AS `partition`, COUNT(*) AS rows_cnt FROM t1_will_crash GROUP BY (b % 7);
SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a; SELECT (b % 7) AS `partition`, b, a, length(c) FROM t1_will_crash ORDER BY `partition`, b, a;
ALTER TABLE t1_will_crash CHECK PARTITION all EXTENDED; ALTER TABLE t1_will_crash CHECK PARTITION all EXTENDED;
DROP TABLE t1_will_crash; DROP TABLE t1_will_crash;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment