Commit 1d1211ab authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: trivial Maria-fication of test results

Updated test results for obvious MariaDB vs MySQL differences
parent 9826edb6
......@@ -16,7 +16,7 @@ SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`pk` int(11) NOT NULL,
`a` int(11) DEFAULT '0',
`a` int(11) DEFAULT 0,
`c` char(8) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
PRIMARY KEY (`pk`)
......
......@@ -254,7 +254,7 @@ a+0 b+0 c+0 d+0
1 0 18446744073709551615 0
DROP TABLE t1;
CREATE TABLE t1 (pk INT PRIMARY KEY, a BIT(65) NULL) ENGINE=rocksdb;
ERROR 42000: Display width out of range for column 'a' (max = 64)
ERROR 42000: Display width out of range for 'a' (max = 64)
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
c BIT NULL,
......@@ -340,7 +340,7 @@ LENGTH(b) LENGTH(b0) LENGTH(b1) LENGTH(b300) LENGTH(bm) LENGTH(b70k) LENGTH(b17m
65535 65535 255 65535 65535 1048576 1048576 255 1048576 1048576
65535 65535 255 65535 65535 1048576 2097152 255 1048576 2097152
ALTER TABLE t1 ADD COLUMN bbb BLOB(4294967296);
ERROR 42000: Display width out of range for column 'bbb' (max = 4294967295)
ERROR 42000: Display width out of range for 'bbb' (max = 4294967295)
DROP TABLE t1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
......
......@@ -148,11 +148,11 @@ d d0 d1_1 d10_2 d60_10 n n0_0 n1 n20_4 n65_4
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
ALTER TABLE t1 ADD COLUMN n66 NUMERIC(66) UNSIGNED;
ERROR 42000: Too big precision 66 specified for column 'n66'. Maximum is 65.
ERROR 42000: Too big precision 66 specified for 'n66'. Maximum is 65
ALTER TABLE t1 ADD COLUMN n66_6 DECIMAL(66,6) UNSIGNED;
ERROR 42000: Too big precision 66 specified for column 'n66_6'. Maximum is 65.
ERROR 42000: Too big precision 66 specified for 'n66_6'. Maximum is 65
ALTER TABLE t1 ADD COLUMN n66_66 DECIMAL(66,66) UNSIGNED;
ERROR 42000: Too big scale 66 specified for column 'n66_66'. Maximum is 30.
ERROR 42000: Too big scale 66 specified for 'n66_66'. Maximum is 38
DROP TABLE t1;
CREATE TABLE t1 (
a DECIMAL UNSIGNED,
......@@ -709,7 +709,7 @@ i i0 i1 i20 t t0 t1 t20 s s0 s1 s20 m m0 m1 m20 b b0 b1 b20
4294967295 4294967295 4294967295 4294967295 255 255 255 255 65535 65535 65535 65535 16777215 16777215 16777215 16777215 18446744073709551615 18446744073709551615 18446744073709551615 18446744073709551615
4294967295 4294967295 4294967295 4294967295 255 255 255 255 65535 65535 65535 65535 16777215 16777215 16777215 16777215 9223372036854775807 9223372036854775807 9223372036854775807 9223372036854775807
ALTER TABLE t1 ADD COLUMN i257 INT(257) UNSIGNED;
ERROR 42000: Display width out of range for column 'i257' (max = 255)
ERROR 42000: Display width out of range for 'i257' (max = 255)
DROP TABLE t1;
CREATE TABLE t1 (
t TINYINT UNSIGNED,
......
......@@ -148,11 +148,11 @@ d d0 d1_1 d10_2 d60_10 n n0_0 n1 n20_4 n65_4
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
9999999999 9999999999 0.9 99999999.99 99999999999999999999999999999999999999999999999999.9999999999 9999999999 9999999999 9 9999999999999999.9999 9999999999999999999999999999999999999999999999999999999999999.9999
ALTER TABLE t1 ADD COLUMN n66 NUMERIC(66) ZEROFILL;
ERROR 42000: Too big precision 66 specified for column 'n66'. Maximum is 65.
ERROR 42000: Too big precision 66 specified for 'n66'. Maximum is 65
ALTER TABLE t1 ADD COLUMN n66_6 DECIMAL(66,6) ZEROFILL;
ERROR 42000: Too big precision 66 specified for column 'n66_6'. Maximum is 65.
ERROR 42000: Too big precision 66 specified for 'n66_6'. Maximum is 65
ALTER TABLE t1 ADD COLUMN n66_66 DECIMAL(66,66) ZEROFILL;
ERROR 42000: Too big scale 66 specified for column 'n66_66'. Maximum is 30.
ERROR 42000: Too big scale 66 specified for 'n66_66'. Maximum is 38
DROP TABLE t1;
CREATE TABLE t1 (
a DECIMAL ZEROFILL,
......
......@@ -23,7 +23,7 @@ user(),
'utf8_general_ci',
'select 1');
SHOW EVENTS;
ERROR 42000: This version of MySQL doesn't yet support 'MICROSECOND'
ERROR 42000: This version of MariaDB doesn't yet support 'MICROSECOND'
DROP EVENT ev1;
SELECT TABLE_NAME, COLUMN_NAME, REFERENCED_TABLE_NAME, REFERENCED_COLUMN_NAME
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE ORDER BY TABLE_NAME;
......
......@@ -3,7 +3,9 @@ Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
connection master;
drop table if exists t1;
connection master;
select @@binlog_format;
@@binlog_format
STATEMENT
......@@ -24,11 +26,13 @@ ERROR HY000: Can't execute updates on master with binlog_format != ROW.
set binlog_format=row;
insert into t1 values (1),(2),(3);
include/sync_slave_sql_with_master.inc
connection slave;
select * from t1;
pk
1
2
3
connection master;
drop table t1;
create table t1 (id int primary key, value int, value2 int, index(value)) engine=rocksdb;
insert into t1 values (1,1,1);
......@@ -40,6 +44,7 @@ update t1 set value2=100 where id=1;
update t1 set value2=200 where id=2;
update t1 set value2=300 where id=3;
include/sync_slave_sql_with_master.inc
connection slave;
select * from t1 where id=1;
id value value2
1 1 100
......@@ -49,6 +54,7 @@ id value value2
select * from t1 where id=3;
id value value2
3 1 300
connection master;
drop table t1;
set binlog_format=row;
include/rpl_end.inc
......@@ -3,7 +3,9 @@ Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
connection master;
drop table if exists t1;
connection master;
create table t0 (a int) engine=myisam;
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
create table t1(a int) engine=myisam;
......@@ -19,26 +21,34 @@ insert into t2 select a,a,a,a from t1;
create table t3 like t2;
insert into t3 select * from t2;
include/sync_slave_sql_with_master.inc
connection slave;
set global debug= 'd,dbug.rocksdb.get_row_by_rowid';
include/stop_slave.inc
include/start_slave.inc
connection master;
update t2 set col1=100 where kp1 between 1 and 3 and mod(kp2,2)=0;
connection slave;
set debug_sync= 'now WAIT_FOR Reached';
set global debug = '';
set sql_log_bin=0;
delete from t2 where pk=2;
delete from t2 where pk=3;
set debug_sync= 'now SIGNAL signal.rocksdb.get_row_by_rowid_let_running';
connection master;
include/sync_slave_sql_with_master.inc
connection slave;
select * from t2 where pk < 5;
pk kp1 kp2 col1
0 0 0 0
1 1 1 1
4 4 4 4
connection slave;
set global debug= 'd,dbug.rocksdb.get_row_by_rowid';
include/stop_slave.inc
include/start_slave.inc
connection master;
update t3 set col1=100 where kp1 between 1 and 4 and mod(kp2,2)=0;
connection slave;
call mtr.add_suppression("Deadlock found when trying to get lock");
set debug_sync= 'now WAIT_FOR Reached';
set global debug = '';
......@@ -46,7 +56,9 @@ set sql_log_bin=0;
delete from t3 where pk=2;
delete from t3 where pk=3;
set debug_sync= 'now SIGNAL signal.rocksdb.get_row_by_rowid_let_running';
connection master;
include/sync_slave_sql_with_master.inc
connection slave;
select * from t3 where pk < 5;
pk kp1 kp2 col1
0 0 0 0
......
......@@ -10,7 +10,7 @@ SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
a bit(1) YES NULL
b bit(20) YES NULL
c bit(64) NO PRI b'0'
c bit(64) NO PRI NULL
d bit(1) YES NULL
ALTER TABLE t1 DROP COLUMN d;
ALTER TABLE t1 ADD COLUMN d BIT(0) ;
......@@ -18,7 +18,7 @@ SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
a bit(1) YES NULL
b bit(20) YES NULL
c bit(64) NO PRI b'0'
c bit(64) NO PRI NULL
d bit(1) YES NULL
INSERT INTO t1 (a,b,c,d) VALUES (0,POW(2,20)-1,b'1111111111111111111111111111111111111111111111111111111111111111',1);
SELECT BIN(a), HEX(b), c+0 FROM t1 WHERE d>0;
......@@ -50,4 +50,4 @@ a+0 b+0 c+0 d+0
1 0 18446744073709551615 0
DROP TABLE t1;
CREATE TABLE t1 (pk INT PRIMARY KEY, a BIT(65) ) ENGINE=rocksdb;
ERROR 42000: Display width out of range for column 'a' (max = 64)
ERROR 42000: Display width out of range for 'a' (max = 64)
......@@ -226,7 +226,7 @@ INSERT INTO t1 (f,f0,r1_1,f23_0,f20_3,d,d1_0,d10_10,d53,d53_10,pk) VALUES (
6
);
Warnings:
Warning 1292 Truncated incorrect DECIMAL value: ''
Warning 1916 Got overflow when converting '' to DECIMAL. Value truncated
Warning 1264 Out of range value for column 'f' at row 1
Warning 1264 Out of range value for column 'f0' at row 1
Warning 1264 Out of range value for column 'r1_1' at row 1
......@@ -298,9 +298,7 @@ r1_1 0.9
r1_1 0.9
r1_1 0.9
ALTER TABLE t1 ADD COLUMN d0_0 DOUBLE(0,0) ;
ERROR 42000: Display width out of range for column 'd0_0' (max = 255)
ALTER TABLE t1 ADD COLUMN n66_6 DECIMAL(256,1) ;
ERROR 42000: Too big precision 256 specified for column 'n66_6'. Maximum is 65.
ERROR 42000: Too big precision 256 specified for 'n66_6'. Maximum is 65
ALTER TABLE t1 ADD COLUMN n66_66 DECIMAL(40,35) ;
ERROR 42000: Too big scale 35 specified for column 'n66_66'. Maximum is 30.
DROP TABLE t1;
......@@ -21,12 +21,12 @@ SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
v0 varchar(0) YES NULL
v1 varchar(1) YES NULL
v64 varchar(64) NO PRI
v64 varchar(64) NO PRI NULL
v65000 varchar(65000) YES NULL
CREATE TABLE t2 (v VARCHAR(65532), PRIMARY KEY (v(255))) ENGINE=rocksdb;
SHOW COLUMNS IN t2;
Field Type Null Key Default Extra
v varchar(65532) NO PRI
v varchar(65532) NO PRI NULL
INSERT INTO t1 (v0,v1,v64,v65000) VALUES ('','','','');
INSERT INTO t1 (v0,v1,v64,v65000) VALUES ('','y','Once there, double check that an article doesn\'t already exist','Here is a list of recommended books on MariaDB and MySQL. We\'ve provided links to Amazon.com here for convenience, but they can be found at many other bookstores, both online and off.
......@@ -133,7 +133,7 @@ SHOW COLUMNS IN t1;
Field Type Null Key Default Extra
v0 varchar(0) YES NULL
v1 varchar(1) YES NULL
v64 varchar(64) NO PRI
v64 varchar(64) NO PRI NULL
v65000 varchar(65000) YES NULL
v65536 mediumtext YES NULL
DROP TABLE t1, t2;
......@@ -418,7 +418,7 @@ insert into t1 values (3, 'a \t', 'a-tab');
explain
select col1, hex(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL # NULL
1 SIMPLE t1 ALL NULL NULL NULL NULL #
select col1, hex(col1) from t1;
col1 hex(col1)
ab 00610062
......@@ -448,7 +448,7 @@ insert into t1 values(23, repeat(' ',18), '18x-space');
explain
select pk, col1, hex(col1), length(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # NULL NULL NULL NULL # NULL
1 SIMPLE t1 # NULL NULL NULL NULL #
select pk, col1, hex(col1), length(col1) from t1;
pk col1 hex(col1) length(col1)
10 0
......@@ -530,7 +530,7 @@ insert into t1 values (3, 'a \t', 'a-tab');
explain
select col1, hex(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL # NULL
1 SIMPLE t1 ALL NULL NULL NULL NULL #
select col1, hex(col1) from t1;
col1 hex(col1)
ab 6162
......@@ -560,7 +560,7 @@ insert into t1 values(23, repeat(' ',18), '18x-space');
explain
select pk, col1, hex(col1), length(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # NULL NULL NULL NULL # NULL
1 SIMPLE t1 # NULL NULL NULL NULL #
select pk, col1, hex(col1), length(col1) from t1;
pk col1 hex(col1) length(col1)
10 0
......@@ -642,7 +642,7 @@ insert into t1 values (3, 'a \t', 'a-tab');
explain
select col1, hex(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL # NULL
1 SIMPLE t1 ALL NULL NULL NULL NULL #
select col1, hex(col1) from t1;
col1 hex(col1)
ab 00610062
......@@ -672,7 +672,7 @@ insert into t1 values(23, repeat(' ',18), '18x-space');
explain
select pk, col1, hex(col1), length(col1) from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 # NULL NULL NULL NULL # NULL
1 SIMPLE t1 # NULL NULL NULL NULL #
select pk, col1, hex(col1), length(col1) from t1;
pk col1 hex(col1) length(col1)
10 0
......
......@@ -95,13 +95,15 @@ INSERT INTO t1 (f,f0,r1_1,f23_0,f20_3,d,d1_0,d10_10,d53,d53_10,pk) VALUES (
--sorted_result
--query_vertical SELECT f,f0,r1_1,f23_0,f20_3,d,d1_0,d10_10,d53,d53_10 FROM t1
--error ER_TOO_BIG_DISPLAYWIDTH
# Error occurs on MySQL but not on MariaDB:
# --error ER_TOO_BIG_DISPLAYWIDTH
eval ALTER TABLE t1 ADD COLUMN d0_0 DOUBLE(0,0) $extra_col_opts;
--error ER_TOO_BIG_PRECISION
eval ALTER TABLE t1 ADD COLUMN n66_6 DECIMAL(256,1) $extra_col_opts;
--error ER_TOO_BIG_SCALE
# Error occurs on MySQL but not on MariaDB:
# --error ER_TOO_BIG_SCALE
eval ALTER TABLE t1 ADD COLUMN n66_66 DECIMAL(40,35) $extra_col_opts;
DROP TABLE t1;
......
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