mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Final fix for bug#38349: Did the changes due to the 2 reviews.
- Updated slow_query_log_file_basic and general_log_file basis instead of the func version as the func version run good but the basic versions fail. - Sent innodb.test to dev@innodb.com. - variables.test has differences probably due to a bug in mtr or in the SET statement (see bug#39369). - general_log_file_basic.test and slow_query_log_file_bsaic.test have differences, which might be produced by the new mtr (see bug#38124).
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
'#--------------------FN_DYNVARS_097_01-------------------------#'
|
||||
SET @start_value = @@global.myisam_stats_method;
|
||||
SET @@global.myisam_stats_method = nulls_equal;
|
||||
'connect (con1,localhost,root,,,,)'
|
||||
'connection con1'
|
||||
@@ -11,11 +12,11 @@ nulls_equal
|
||||
'#--------------------FN_DYNVARS_097_02-------------------------#'
|
||||
'connection default'
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a int, key (a));
|
||||
CREATE TABLE t1 (a INT, KEY (a));
|
||||
INSERT INTO t1 VALUES (0),(1),(2),(3),(4);
|
||||
INSERT INTO t1 SELECT NULL FROM t1;
|
||||
'default: NULLs considered unequal'
|
||||
SET myisam_stats_method=nulls_unequal;
|
||||
SET myisam_stats_method = nulls_unequal;
|
||||
ANALYZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
@@ -23,7 +24,7 @@ SHOW INDEX FROM t1;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
||||
t1 1 a 1 a A 10 NULL NULL YES BTREE
|
||||
INSERT INTO t1 VALUES (11);
|
||||
DELETE FROM t1 WHERE a=11;
|
||||
DELETE FROM t1 WHERE a = 11;
|
||||
CHECK TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
@@ -31,9 +32,9 @@ SHOW INDEX FROM t1;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
||||
t1 1 a 1 a A 10 NULL NULL YES BTREE
|
||||
'Set nulls to be equal'
|
||||
SET myisam_stats_method=nulls_equal;
|
||||
SET myisam_stats_method = nulls_equal;
|
||||
INSERT INTO t1 VALUES (11);
|
||||
DELETE FROM t1 WHERE a=11;
|
||||
DELETE FROM t1 WHERE a = 11;
|
||||
ANALYZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
@@ -41,7 +42,7 @@ SHOW INDEX FROM t1;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
||||
t1 1 a 1 a A 5 NULL NULL YES BTREE
|
||||
INSERT INTO t1 VALUES (11);
|
||||
DELETE FROM t1 WHERE a=11;
|
||||
DELETE FROM t1 WHERE a = 11;
|
||||
CHECK TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
@@ -49,14 +50,14 @@ SHOW INDEX FROM t1;
|
||||
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
||||
t1 1 a 1 a A 5 NULL NULL YES BTREE
|
||||
'Set nulls to be ignored'
|
||||
SET myisam_stats_method=nulls_ignored;
|
||||
SHOW variables LIKE 'myisam_stats_method';
|
||||
SET myisam_stats_method = nulls_ignored;
|
||||
SHOW VARIABLES LIKE 'myisam_stats_method';
|
||||
Variable_name Value
|
||||
myisam_stats_method nulls_ignored
|
||||
drop TABLE t1;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
a char(3), b char(4), c char(5), d char(6),
|
||||
key(a,b,c,d)
|
||||
a CHAR(3), b CHAR(4), c CHAR(5), d CHAR(6),
|
||||
KEY(a,b,c,d)
|
||||
);
|
||||
INSERT INTO t1 VALUES ('bcd','def1', NULL, 'zz');
|
||||
INSERT INTO t1 VALUES ('bcd','def2', NULL, 'zz');
|
||||
@@ -81,5 +82,6 @@ t1 1 a 1 a A 0 NULL NULL YES BTREE
|
||||
t1 1 a 2 b A 0 NULL NULL YES BTREE
|
||||
t1 1 a 3 c A 0 NULL NULL YES BTREE
|
||||
t1 1 a 4 d A 0 NULL NULL YES BTREE
|
||||
SET myisam_stats_method=DEFAULT;
|
||||
SET myisam_stats_method = DEFAULT;
|
||||
DROP TABLE t1;
|
||||
SET @@global.myisam_stats_method= @start_value;
|
||||
|
Reference in New Issue
Block a user