Skip to content

Commit 0c94001

Browse files
committed
fix merge test to restore the environment
include/test_db_charset_latin1.inc should be paired with include/test_db_charset_restore.inc also fix end-of-version test markers
1 parent 6d0be01 commit 0c94001

File tree

2 files changed

+11
-30
lines changed

2 files changed

+11
-30
lines changed

mysql-test/suite/merge/merge.result

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ SELECT COUNT(*) FROM t3 WHERE a=0xDF AND b=2;
882882
COUNT(*)
883883
2
884884
DROP TABLE t1,t2,t3;
885+
# End of 4.1 tests
885886
create table t1 (b bit(1));
886887
create table t2 (b bit(1));
887888
create table tm (b bit(1)) engine = merge union = (t1,t2);
@@ -1007,7 +1008,7 @@ ERROR HY000: Unable to open underlying table which is differently defined or of
10071008
SELECT * FROM m2;
10081009
a
10091010
DROP TABLE t1, t2, m1, m2;
1010-
End of 5.0 tests
1011+
# End of 5.0 tests
10111012
create table t1 (c1 int, index(c1));
10121013
create table t2 (c1 int, index(c1)) engine=merge union=(t1);
10131014
insert into t1 values (1);
@@ -2419,7 +2420,7 @@ check table tm_temp_temp;
24192420
Table Op Msg_type Msg_text
24202421
test.tm_temp_temp check status OK
24212422
drop temporary table t1_temp, tm_temp_temp;
2422-
End of 5.1 tests
2423+
# End of 5.1 tests
24232424
#
24242425
# MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrg
24252426
#
@@ -2550,7 +2551,7 @@ i a b filler
25502551
2 999 999 filler-data-FILLER-DATA-qqq
25512552
drop table t5;
25522553
drop table t1,t2,t3,t4;
2553-
End of 5.3 tests
2554+
# End of 5.3 tests
25542555
CREATE TABLE t1(a INT, KEY(a)) ENGINE=merge;
25552556
SELECT MAX(a) FROM t1;
25562557
MAX(a)
@@ -3800,10 +3801,8 @@ test.t1 analyze status Engine-independent statistics collected
38003801
test.t1 analyze status Table is already up to date
38013802
DEALLOCATE PREPARE stmt;
38023803
DROP TABLE t1, tmerge;
3803-
#
38043804
# End of 5.5 tests
38053805
#
3806-
#
38073806
# Additional coverage for refactoring which is made as part
38083807
# of fix for bug #27480 "Extend CREATE TEMPORARY TABLES privilege
38093808
# to allow temp table operations".
@@ -3898,11 +3897,8 @@ f
38983897
foo
38993898
bar
39003899
DROP TABLE mrg, t1;
3901-
End of 10.5 tests
3902-
#
39033900
# End of 10.0 tests
39043901
#
3905-
#
39063902
# MDEV-27407 Different ASC/DESC index attributes on MERGE and underlying table can cause wrong results
39073903
#
39083904
create table t (a int, key(a desc)) engine=myisam;
@@ -3924,10 +3920,8 @@ a
39243920
2
39253921
1
39263922
drop table tm, t;
3927-
#
39283923
# End of 10.8 tests
39293924
#
3930-
#
39313925
# MDEV-35816 ASAN use-after-poison in st_select_lex::print
39323926
#
39333927
CREATE TABLE t1 (a INT);
@@ -3964,10 +3958,8 @@ a
39643958
4
39653959
5
39663960
DROP TABLE t1;
3967-
#
39683961
# End of 10.11 tests
39693962
#
3970-
#
39713963
# MDEV-30088 Assertion `cond_selectivity <= 1.0' failed in get_range_limit_read_cost
39723964
#
39733965
CREATE TABLE t1 (a TIMESTAMP, KEY(a)) ENGINE=MRG_MyISAM;
@@ -4020,10 +4012,8 @@ id select_type table type possible_keys key key_len ref rows Extra
40204012
1 SIMPLE t1 range NULL i1 5 NULL 1 Using index for group-by
40214013
drop table t1;
40224014
set use_stat_tables=default;
4023-
#
40244015
# End of 11.0 tests
40254016
#
4026-
#
40274017
# MDEV-29174: UPDATE of view that uses MERGE table
40284018
#
40294019
CREATE TABLE t1 (a int) ENGINE=MERGE;
@@ -4032,3 +4022,4 @@ UPDATE v1 SET a=0;
40324022
DROP VIEW v1;
40334023
DROP TABLE t1;
40344024
# End of 11.1 tests
4025+
ALTER DATABASE test CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci;

mysql-test/suite/merge/merge.test

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ INSERT INTO t2 VALUES ('ss',2),(0xDF,2);
523523
SELECT COUNT(*) FROM t3 WHERE a=0xDF AND b=2;
524524
DROP TABLE t1,t2,t3;
525525

526-
# End of 4.1 tests
526+
--echo # End of 4.1 tests
527527

528528
#
529529
# BUG#19648 - Merge table does not work with bit types
@@ -632,7 +632,7 @@ SELECT * FROM m1;
632632
SELECT * FROM m2;
633633
DROP TABLE t1, t2, m1, m2;
634634

635-
--echo End of 5.0 tests
635+
--echo # End of 5.0 tests
636636

637637

638638
#
@@ -1829,7 +1829,7 @@ alter table tm_temp_temp insert_method=first;
18291829
check table tm_temp_temp;
18301830
drop temporary table t1_temp, tm_temp_temp;
18311831

1832-
--echo End of 5.1 tests
1832+
--echo # End of 5.1 tests
18331833

18341834
--echo #
18351835
--echo # MDEV-4277: Crash inside mi_killed_in_mariadb() with myisammrg
@@ -1866,7 +1866,7 @@ select * from t2, t5 where t5.a=999 and t5.b=999;
18661866
drop table t5;
18671867
drop table t1,t2,t3,t4;
18681868

1869-
--echo End of 5.3 tests
1869+
--echo # End of 5.3 tests
18701870

18711871
#
18721872
# BUG#35274 - merge table doesn't need any base tables, gives error 124 when
@@ -2773,9 +2773,7 @@ EXECUTE stmt;
27732773
DEALLOCATE PREPARE stmt;
27742774
DROP TABLE t1, tmerge;
27752775

2776-
--echo #
27772776
--echo # End of 5.5 tests
2778-
--echo #
27792777

27802778
--echo #
27812779
--echo # Additional coverage for refactoring which is made as part
@@ -2860,11 +2858,7 @@ CREATE TABLE mrg (f TEXT) ENGINE=MERGE, UNION(t1);
28602858
SELECT * FROM mrg;
28612859
DROP TABLE mrg, t1;
28622860

2863-
--echo End of 10.5 tests
2864-
2865-
--echo #
28662861
--echo # End of 10.0 tests
2867-
--echo #
28682862

28692863
--echo #
28702864
--echo # MDEV-27407 Different ASC/DESC index attributes on MERGE and underlying table can cause wrong results
@@ -2886,9 +2880,7 @@ insert into tm () values ();
28862880
select * from tm;
28872881
drop table tm, t;
28882882

2889-
--echo #
28902883
--echo # End of 10.8 tests
2891-
--echo #
28922884

28932885
--echo #
28942886
--echo # MDEV-35816 ASAN use-after-poison in st_select_lex::print
@@ -2904,9 +2896,7 @@ EXECUTE nested;
29042896
EXECUTE nested;
29052897
DROP TABLE t1;
29062898

2907-
--echo #
29082899
--echo # End of 10.11 tests
2909-
--echo #
29102900

29112901
--echo #
29122902
--echo # MDEV-30088 Assertion `cond_selectivity <= 1.0' failed in get_range_limit_read_cost
@@ -2953,9 +2943,8 @@ EXPLAIN SELECT DISTINCT a FROM t1;
29532943
drop table t1;
29542944
set use_stat_tables=default;
29552945

2956-
--echo #
29572946
--echo # End of 11.0 tests
2958-
--echo #
2947+
29592948
--echo #
29602949
--echo # MDEV-29174: UPDATE of view that uses MERGE table
29612950
--echo #
@@ -2967,3 +2956,4 @@ DROP VIEW v1;
29672956
DROP TABLE t1;
29682957

29692958
--echo # End of 11.1 tests
2959+
--source include/test_db_charset_restore.inc

0 commit comments

Comments
 (0)