Commit 6f42c3c5 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-7635: Fix for mroonga 32-bit test failures.

parent c513c4cb
...@@ -14,7 +14,7 @@ diaries CREATE TABLE `diaries` ( ...@@ -14,7 +14,7 @@ diaries CREATE TABLE `diaries` (
) ENGINE=Mroonga DEFAULT CHARSET=utf8 ) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at) INSERT INTO diaries (title, created_at)
VALUES ('2038-01-18 03:14:07', '2038-01-18 03:14:07'); VALUES ('2038-01-18 03:14:07', '2038-01-18 03:14:07');
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('2038-01-20 03:14:08', '2038-01-20 03:14:08'); VALUES ('2038-01-20 03:14:08', '2038-01-20 03:14:08');
Warnings: Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1 Warning 1265 Data truncated for column 'created_at' at row 1
......
...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` ( ...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8 ) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('1000-01-01 00:00:00', '1000-01-01 00:00:00'); VALUES ('1000-01-01 00:00:00', '1000-01-01 00:00:00');
Warnings: Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1 Warning 1265 Data truncated for column 'created_at' at row 1
......
...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` ( ...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8 ) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('9999-12-31 23:59:59', '9999-12-31 23:59:59'); VALUES ('9999-12-31 23:59:59', '9999-12-31 23:59:59');
Warnings: Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1 Warning 1265 Data truncated for column 'created_at' at row 1
......
...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` ( ...@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8 ) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('2012', '2012'); VALUES ('2012', '2012');
Warnings: Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1 Warning 1265 Data truncated for column 'created_at' at row 1
......
...@@ -5,17 +5,17 @@ start DATE, ...@@ -5,17 +5,17 @@ start DATE,
end DATE, end DATE,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (1, "1000-01-01", "2012-10-05");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (3, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (3, "2012-10-25", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (4, "9999-12-31", "1000-01-01");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -5,17 +5,17 @@ start DATE, ...@@ -5,17 +5,17 @@ start DATE,
end DATE, end DATE,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (4, "1000-01-01", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -5,17 +5,17 @@ start DATE, ...@@ -5,17 +5,17 @@ start DATE,
end DATE, end DATE,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (4, "1000-01-01", "9999-12-31");
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -5,17 +5,17 @@ start YEAR, ...@@ -5,17 +5,17 @@ start YEAR,
end YEAR, end YEAR,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 1901, 2012); INSERT IGNORE INTO ranges VALUES (1, 1901, 2012);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (2, 1901, 2155); INSERT IGNORE INTO ranges VALUES (2, 1901, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (3, 2012, 2155); INSERT IGNORE INTO ranges VALUES (3, 2012, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 2155, 1901); INSERT IGNORE INTO ranges VALUES (4, 2155, 1901);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -5,17 +5,17 @@ start YEAR, ...@@ -5,17 +5,17 @@ start YEAR,
end YEAR, end YEAR,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 2012, 2155); INSERT IGNORE INTO ranges VALUES (1, 2012, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, 1901, 2012); INSERT IGNORE INTO ranges VALUES (2, 1901, 2012);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, 2155, 1901); INSERT IGNORE INTO ranges VALUES (3, 2155, 1901);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 1901, 2155); INSERT IGNORE INTO ranges VALUES (4, 1901, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -5,17 +5,17 @@ start YEAR, ...@@ -5,17 +5,17 @@ start YEAR,
end YEAR, end YEAR,
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 2012, 2155); INSERT IGNORE INTO ranges VALUES (1, 2012, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, 1901, 2012); INSERT IGNORE INTO ranges VALUES (2, 1901, 2012);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, 2155, 1901); INSERT IGNORE INTO ranges VALUES (3, 2155, 1901);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 1901, 2155); INSERT IGNORE INTO ranges VALUES (4, 1901, 2155);
Warnings: Warnings:
Warning 1265 Data truncated for column 'start' at row 1 Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1 Warning 1265 Data truncated for column 'end' at row 1
......
...@@ -30,7 +30,7 @@ SHOW CREATE TABLE diaries; ...@@ -30,7 +30,7 @@ SHOW CREATE TABLE diaries;
INSERT INTO diaries (title, created_at) INSERT INTO diaries (title, created_at)
VALUES ('2038-01-18 03:14:07', '2038-01-18 03:14:07'); VALUES ('2038-01-18 03:14:07', '2038-01-18 03:14:07');
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('2038-01-20 03:14:08', '2038-01-20 03:14:08'); VALUES ('2038-01-20 03:14:08', '2038-01-20 03:14:08');
SELECT * FROM diaries; SELECT * FROM diaries;
......
...@@ -28,7 +28,7 @@ CREATE TABLE diaries ( ...@@ -28,7 +28,7 @@ CREATE TABLE diaries (
) DEFAULT CHARSET UTF8; ) DEFAULT CHARSET UTF8;
SHOW CREATE TABLE diaries; SHOW CREATE TABLE diaries;
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('1000-01-01 00:00:00', '1000-01-01 00:00:00'); VALUES ('1000-01-01 00:00:00', '1000-01-01 00:00:00');
SELECT * FROM diaries; SELECT * FROM diaries;
......
...@@ -28,7 +28,7 @@ CREATE TABLE diaries ( ...@@ -28,7 +28,7 @@ CREATE TABLE diaries (
) DEFAULT CHARSET UTF8; ) DEFAULT CHARSET UTF8;
SHOW CREATE TABLE diaries; SHOW CREATE TABLE diaries;
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('9999-12-31 23:59:59', '9999-12-31 23:59:59'); VALUES ('9999-12-31 23:59:59', '9999-12-31 23:59:59');
SELECT * FROM diaries; SELECT * FROM diaries;
......
...@@ -28,7 +28,7 @@ CREATE TABLE diaries ( ...@@ -28,7 +28,7 @@ CREATE TABLE diaries (
) DEFAULT CHARSET UTF8; ) DEFAULT CHARSET UTF8;
SHOW CREATE TABLE diaries; SHOW CREATE TABLE diaries;
INSERT INTO diaries (title, created_at) INSERT IGNORE INTO diaries (title, created_at)
VALUES ('2012', '2012'); VALUES ('2012', '2012');
SELECT * FROM diaries; SELECT * FROM diaries;
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (1, "1000-01-01", "2012-10-05");
INSERT INTO ranges VALUES (2, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "9999-12-31");
INSERT INTO ranges VALUES (3, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (3, "2012-10-25", "9999-12-31");
INSERT INTO ranges VALUES (4, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (4, "9999-12-31", "1000-01-01");
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
WHERE start = "1000-01-01" AND end = "9999-12-31"; WHERE start = "1000-01-01" AND end = "9999-12-31";
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
INSERT INTO ranges VALUES (4, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (4, "1000-01-01", "9999-12-31");
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
ORDER BY start, end; ORDER BY start, end;
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05"); INSERT IGNORE INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01"); INSERT IGNORE INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
INSERT INTO ranges VALUES (4, "1000-01-01", "9999-12-31"); INSERT IGNORE INTO ranges VALUES (4, "1000-01-01", "9999-12-31");
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
ORDER BY start DESC, end DESC; ORDER BY start DESC, end DESC;
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 1901, 2012); INSERT IGNORE INTO ranges VALUES (1, 1901, 2012);
INSERT INTO ranges VALUES (2, 1901, 2155); INSERT IGNORE INTO ranges VALUES (2, 1901, 2155);
INSERT INTO ranges VALUES (3, 2012, 2155); INSERT IGNORE INTO ranges VALUES (3, 2012, 2155);
INSERT INTO ranges VALUES (4, 2155, 1901); INSERT IGNORE INTO ranges VALUES (4, 2155, 1901);
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
WHERE start = 1901 AND end = 2155; WHERE start = 1901 AND end = 2155;
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 2012, 2155); INSERT IGNORE INTO ranges VALUES (1, 2012, 2155);
INSERT INTO ranges VALUES (2, 1901, 2012); INSERT IGNORE INTO ranges VALUES (2, 1901, 2012);
INSERT INTO ranges VALUES (3, 2155, 1901); INSERT IGNORE INTO ranges VALUES (3, 2155, 1901);
INSERT INTO ranges VALUES (4, 1901, 2155); INSERT IGNORE INTO ranges VALUES (4, 1901, 2155);
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
ORDER BY start, end; ORDER BY start, end;
......
...@@ -29,10 +29,10 @@ CREATE TABLE ranges ( ...@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE KEY range_key(start, end) UNIQUE KEY range_key(start, end)
); );
INSERT INTO ranges VALUES (1, 2012, 2155); INSERT IGNORE INTO ranges VALUES (1, 2012, 2155);
INSERT INTO ranges VALUES (2, 1901, 2012); INSERT IGNORE INTO ranges VALUES (2, 1901, 2012);
INSERT INTO ranges VALUES (3, 2155, 1901); INSERT IGNORE INTO ranges VALUES (3, 2155, 1901);
INSERT INTO ranges VALUES (4, 1901, 2155); INSERT IGNORE INTO ranges VALUES (4, 1901, 2155);
SELECT * FROM ranges FORCE INDEX(range_key) SELECT * FROM ranges FORCE INDEX(range_key)
ORDER BY start DESC, end DESC; ORDER BY start DESC, end DESC;
......
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