Skip to content

Commit f23a009

Browse files
committed
MariaRocks port: fix a few test result differences
- MariaDB has different wording for a few error messages - MySQL changed Extra='' to Extra=NULL for EXPLAIN outputs, MariaDB didnt - The testsuite in storage/rocksdb/mysql-test needs paths to include files adjusted - In SHOW COLUMNS output, Extra column is "NULL" in MariaDB vs '' in MySQL
1 parent e9ee999 commit f23a009

17 files changed

+28
-22
lines changed

storage/rocksdb/mysql-test/rocksdb/r/issue111.result

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
connect con2,localhost,root,,;
2+
connection default;
13
create table t1 (
24
pk int not null primary key,
35
col1 int not null,
@@ -24,9 +26,12 @@ pk col1 col2
2426
8 8 8
2527
9 9 9
2628
# Connect with another connection and make a conflicting change
29+
connection con2;
2730
begin;
2831
update t1 set col2=123456 where pk=0;
2932
commit;
33+
connection default;
3034
update t1 set col2=col2+1 where col1 < 10 limit 5;
3135
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
36+
disconnect con2;
3237
drop table t1, ten, one_k;

storage/rocksdb/mysql-test/rocksdb/r/rocksdb_parts.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ partition by list (b*a) (partition x1 values in (1) tablespace ts1,
8383
partition x2 values in (3,11,5,7) tablespace ts2,
8484
partition x3 values in (16,8,5+19,70-43) tablespace ts3);
8585
create table t2(b binary(2));
86-
set session optimizer_switch=5;
86+
set session optimizer_switch='materialization=off';
8787
insert into t1(a,b) values(1,7);
8888
select a from t1 where a in (select a from t1 where a in (select b from t2));
8989
a

storage/rocksdb/mysql-test/rocksdb/r/rocksdb_range.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ insert into t2 select A.a, FLOOR(A.a/10), A.a from t1 A;
2121
explain
2222
select * from t2 force index (a) where a=0;
2323
id select_type table type possible_keys key key_len ref rows Extra
24-
1 SIMPLE t2 ref a a 4 const # NULL
24+
1 SIMPLE t2 ref a a 4 const #
2525
select * from t2 force index (a) where a=0;
2626
pk a b
2727
0 0 0
@@ -38,7 +38,7 @@ pk a b
3838
explain
3939
select * from t2 force index (a) where a=2;
4040
id select_type table type possible_keys key key_len ref rows Extra
41-
1 SIMPLE t2 ref a a 4 const # NULL
41+
1 SIMPLE t2 ref a a 4 const #
4242
select * from t2 force index (a) where a=2;
4343
pk a b
4444
20 2 20
@@ -54,7 +54,7 @@ pk a b
5454
explain
5555
select * from t2 force index (a) where a=3 and pk=33;
5656
id select_type table type possible_keys key key_len ref rows Extra
57-
1 SIMPLE t2 const a a 8 const,const # NULL
57+
1 SIMPLE t2 const a a 8 const,const #
5858
select * from t2 force index (a) where a=3 and pk=33;
5959
pk a b
6060
33 3 33

storage/rocksdb/mysql-test/rocksdb/r/truncate_table.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ DROP TABLE t1;
2929
CREATE TABLE t1 (a INT PRIMARY KEY, b CHAR(8)) ENGINE=rocksdb;
3030
INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b'),(3,'c');
3131
HANDLER t1 OPEN AS h1;
32-
ERROR HY000: Table storage engine for 'h1' doesn't have this option
32+
ERROR HY000: Storage engine ROCKSDB of the table `test`.`t1` doesn't have this option
3333
DROP TABLE t1;

storage/rocksdb/mysql-test/rocksdb/r/type_blob.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ LENGTH(b) LENGTH(b0) LENGTH(b1) LENGTH(b300) LENGTH(bm) LENGTH(b70k) LENGTH(b17m
5353
65535 65535 255 65535 65535 1048576 1048576 255 1048576 1048576
5454
65535 65535 255 65535 65535 1048576 2097152 255 1048576 2097152
5555
ALTER TABLE t1 ADD COLUMN bbb BLOB(4294967296);
56-
ERROR 42000: Display width out of range for column 'bbb' (max = 4294967295)
56+
ERROR 42000: Display width out of range for 'bbb' (max = 4294967295)
5757
DROP TABLE t1;

storage/rocksdb/mysql-test/rocksdb/r/type_bool.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ b1 b2
6767
127 -128
6868
2 3
6969
ALTER TABLE t1 ADD COLUMN b3 BOOLEAN UNSIGNED ;
70-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNSIGNED' at line 1
70+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'UNSIGNED' at line 1
7171
ALTER TABLE ADD COLUMN b3 BOOL ZEROFILL ;
72-
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ADD COLUMN b3 BOOL ZEROFILL' at line 1
72+
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ADD COLUMN b3 BOOL ZEROFILL' at line 1
7373
DROP TABLE t1;

storage/rocksdb/mysql-test/rocksdb/r/type_char.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ c char(1) YES NULL
1313
c0 char(0) YES NULL
1414
c1 char(1) YES NULL
1515
c20 char(20) YES NULL
16-
c255 char(255) NO PRI
16+
c255 char(255) NO PRI NULL
1717
INSERT INTO t1 (c,c0,c1,c20,c255) VALUES ('','','','','');
1818
INSERT INTO t1 (c,c0,c1,c20,c255) VALUES ('a','','b','abcdefghi klmnopqrst', 'Creating an article for the Knowledgebase is similar to asking questions. First, navigate to the category where you feel the article should be. Once there, double check that an article doesn\'t already exist which would work.');
1919
SELECT c,c0,c1,c20,c255 FROM t1;
@@ -66,7 +66,7 @@ c1
6666
DROP TABLE t1;
6767
CREATE TABLE t1(a char(10) character set utf8 collate utf8_bin primary key);
6868
INSERT INTO t1 VALUES ('one'),('two'),('three'),('four'),('five');
69-
SELECT * FROM t1 LIMIT 1 UNION SELECT * FROM t1;
69+
(SELECT * FROM t1 LIMIT 1) UNION (SELECT * FROM t1);
7070
a
7171
five
7272
four

storage/rocksdb/mysql-test/rocksdb/r/type_fixed.result

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ d d0 d1_1 d10_2 d60_10 n n0_0 n1 n20_4 n65_4
123123
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
124124
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
125125
ALTER TABLE t1 ADD COLUMN n66 NUMERIC(66) ;
126-
ERROR 42000: Too big precision 66 specified for column 'n66'. Maximum is 65.
126+
ERROR 42000: Too big precision 66 specified for 'n66'. Maximum is 65
127127
ALTER TABLE t1 ADD COLUMN n66_6 DECIMAL(66,6) ;
128-
ERROR 42000: Too big precision 66 specified for column 'n66_6'. Maximum is 65.
128+
ERROR 42000: Too big precision 66 specified for 'n66_6'. Maximum is 65
129129
ALTER TABLE t1 ADD COLUMN n66_66 DECIMAL(66,66) ;
130-
ERROR 42000: Too big scale 66 specified for column 'n66_66'. Maximum is 30.
130+
ERROR 42000: Too big scale 66 specified for 'n66_66'. Maximum is 38
131131
DROP TABLE t1;

storage/rocksdb/mysql-test/rocksdb/r/type_int.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,5 @@ i i0 i1 i20 t t0 t1 t20 s s0 s1 s20 m m0 m1 m20 b b0 b1 b20
208208
2147483647 2147483647 2147483647 2147483647 127 127 127 127 32767 32767 32767 32767 8388607 8388607 8388607 8388607 9223372036854775807 9223372036854775807 9223372036854775807 9223372036854775807
209209
2147483647 2147483647 2147483647 2147483647 127 127 127 127 32767 32767 32767 32767 8388607 8388607 8388607 8388607 9223372036854775807 9223372036854775807 9223372036854775807 9223372036854775807
210210
ALTER TABLE t1 ADD COLUMN i257 INT(257) ;
211-
ERROR 42000: Display width out of range for column 'i257' (max = 255)
211+
ERROR 42000: Display width out of range for 'i257' (max = 255)
212212
DROP TABLE t1;

0 commit comments

Comments
 (0)