Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6f42c3c5
Commit
6f42c3c5
authored
Feb 09, 2017
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7635: Fix for mroonga 32-bit test failures.
parent
c513c4cb
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
56 additions
and
56 deletions
+56
-56
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_2038.result
...-test/mroonga/storage/r/column_datetime_32bit_2038.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_before_unix_epoch.result
.../storage/r/column_datetime_32bit_before_unix_epoch.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_max.result
...l-test/mroonga/storage/r/column_datetime_32bit_max.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_out_of_range.result
...oonga/storage/r/column_datetime_32bit_out_of_range.result
+1
-1
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_32bit_equal.result
...ge/r/index_multiple_column_unique_date_32bit_equal.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_order_32bit_asc.result
.../index_multiple_column_unique_date_order_32bit_asc.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_order_32bit_desc.result
...index_multiple_column_unique_date_order_32bit_desc.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_32bit_equal.result
...ge/r/index_multiple_column_unique_year_32bit_equal.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_order_32bit_asc.result
.../index_multiple_column_unique_year_order_32bit_asc.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_order_32bit_desc.result
...index_multiple_column_unique_year_order_32bit_desc.result
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_2038.test
...ql-test/mroonga/storage/t/column_datetime_32bit_2038.test
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_before_unix_epoch.test
...ga/storage/t/column_datetime_32bit_before_unix_epoch.test
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_max.test
...sql-test/mroonga/storage/t/column_datetime_32bit_max.test
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_out_of_range.test
...mroonga/storage/t/column_datetime_32bit_out_of_range.test
+1
-1
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_32bit_equal.test
...rage/t/index_multiple_column_unique_date_32bit_equal.test
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_32bit_asc.test
.../t/index_multiple_column_unique_date_order_32bit_asc.test
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_32bit_desc.test
...t/index_multiple_column_unique_date_order_32bit_desc.test
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_32bit_equal.test
...rage/t/index_multiple_column_unique_year_32bit_equal.test
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_order_32bit_asc.test
.../t/index_multiple_column_unique_year_order_32bit_asc.test
+4
-4
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_order_32bit_desc.test
...t/index_multiple_column_unique_year_order_32bit_desc.test
+4
-4
No files found.
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_2038.result
View file @
6f42c3c5
...
...
@@ -14,7 +14,7 @@ diaries CREATE TABLE `diaries` (
) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at)
VALUES ('2038-01-18 03:14:07', '2038-01-18 03:14:07');
INSERT INTO diaries (title, created_at)
INSERT I
GNORE I
NTO diaries (title, created_at)
VALUES ('2038-01-20 03:14:08', '2038-01-20 03:14:08');
Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_before_unix_epoch.result
View file @
6f42c3c5
...
...
@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at)
INSERT I
GNORE I
NTO diaries (title, created_at)
VALUES ('1000-01-01 00:00:00', '1000-01-01 00:00:00');
Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_max.result
View file @
6f42c3c5
...
...
@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at)
INSERT I
GNORE I
NTO diaries (title, created_at)
VALUES ('9999-12-31 23:59:59', '9999-12-31 23:59:59');
Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/column_datetime_32bit_out_of_range.result
View file @
6f42c3c5
...
...
@@ -12,7 +12,7 @@ diaries CREATE TABLE `diaries` (
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=Mroonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, created_at)
INSERT I
GNORE I
NTO diaries (title, created_at)
VALUES ('2012', '2012');
Warnings:
Warning 1265 Data truncated for column 'created_at' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_32bit_equal.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start DATE,
end DATE,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, "1000-01-01", "2012-10-05");
INSERT I
GNORE I
NTO ranges VALUES (1, "1000-01-01", "2012-10-05");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "9999-12-31");
INSERT I
GNORE I
NTO ranges VALUES (2, "1000-01-01", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'start' 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 I
GNORE I
NTO ranges VALUES (3, "2012-10-25", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, "9999-12-31", "1000-01-01");
INSERT I
GNORE I
NTO ranges VALUES (4, "9999-12-31", "1000-01-01");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_order_32bit_asc.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start DATE,
end DATE,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
INSERT I
GNORE I
NTO ranges VALUES (1, "2012-10-25", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
INSERT I
GNORE I
NTO ranges VALUES (2, "1000-01-01", "2012-10-05");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
INSERT I
GNORE I
NTO ranges VALUES (3, "9999-12-31", "1000-01-01");
Warnings:
Warning 1265 Data truncated for column 'start' 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 I
GNORE I
NTO ranges VALUES (4, "1000-01-01", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_date_order_32bit_desc.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start DATE,
end DATE,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, "2012-10-25", "9999-12-31");
INSERT I
GNORE I
NTO ranges VALUES (1, "2012-10-25", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, "1000-01-01", "2012-10-05");
INSERT I
GNORE I
NTO ranges VALUES (2, "1000-01-01", "2012-10-05");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, "9999-12-31", "1000-01-01");
INSERT I
GNORE I
NTO ranges VALUES (3, "9999-12-31", "1000-01-01");
Warnings:
Warning 1265 Data truncated for column 'start' 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 I
GNORE I
NTO ranges VALUES (4, "1000-01-01", "9999-12-31");
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_32bit_equal.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start YEAR,
end YEAR,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, 1901, 2012);
INSERT I
GNORE I
NTO ranges VALUES (1, 1901, 2012);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (2, 1901, 2155);
INSERT I
GNORE I
NTO ranges VALUES (2, 1901, 2155);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (3, 2012, 2155);
INSERT I
GNORE I
NTO ranges VALUES (3, 2012, 2155);
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 2155, 1901);
INSERT I
GNORE I
NTO ranges VALUES (4, 2155, 1901);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_order_32bit_asc.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start YEAR,
end YEAR,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, 2012, 2155);
INSERT I
GNORE I
NTO ranges VALUES (1, 2012, 2155);
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, 1901, 2012);
INSERT I
GNORE I
NTO ranges VALUES (2, 1901, 2012);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, 2155, 1901);
INSERT I
GNORE I
NTO ranges VALUES (3, 2155, 1901);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 1901, 2155);
INSERT I
GNORE I
NTO ranges VALUES (4, 1901, 2155);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/r/index_multiple_column_unique_year_order_32bit_desc.result
View file @
6f42c3c5
...
...
@@ -5,17 +5,17 @@ start YEAR,
end YEAR,
UNIQUE KEY range_key(start, end)
);
INSERT INTO ranges VALUES (1, 2012, 2155);
INSERT I
GNORE I
NTO ranges VALUES (1, 2012, 2155);
Warnings:
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (2, 1901, 2012);
INSERT I
GNORE I
NTO ranges VALUES (2, 1901, 2012);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
INSERT INTO ranges VALUES (3, 2155, 1901);
INSERT I
GNORE I
NTO ranges VALUES (3, 2155, 1901);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
INSERT INTO ranges VALUES (4, 1901, 2155);
INSERT I
GNORE I
NTO ranges VALUES (4, 1901, 2155);
Warnings:
Warning 1265 Data truncated for column 'start' at row 1
Warning 1265 Data truncated for column 'end' at row 1
...
...
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_2038.test
View file @
6f42c3c5
...
...
@@ -30,7 +30,7 @@ SHOW CREATE TABLE diaries;
INSERT
INTO
diaries
(
title
,
created_at
)
VALUES
(
'2038-01-18 03:14:07'
,
'2038-01-18 03:14:07'
);
INSERT
INTO
diaries
(
title
,
created_at
)
INSERT
I
GNORE
I
NTO
diaries
(
title
,
created_at
)
VALUES
(
'2038-01-20 03:14:08'
,
'2038-01-20 03:14:08'
);
SELECT
*
FROM
diaries
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_before_unix_epoch.test
View file @
6f42c3c5
...
...
@@ -28,7 +28,7 @@ CREATE TABLE diaries (
)
DEFAULT
CHARSET
UTF8
;
SHOW
CREATE
TABLE
diaries
;
INSERT
INTO
diaries
(
title
,
created_at
)
INSERT
I
GNORE
I
NTO
diaries
(
title
,
created_at
)
VALUES
(
'1000-01-01 00:00:00'
,
'1000-01-01 00:00:00'
);
SELECT
*
FROM
diaries
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_max.test
View file @
6f42c3c5
...
...
@@ -28,7 +28,7 @@ CREATE TABLE diaries (
)
DEFAULT
CHARSET
UTF8
;
SHOW
CREATE
TABLE
diaries
;
INSERT
INTO
diaries
(
title
,
created_at
)
INSERT
I
GNORE
I
NTO
diaries
(
title
,
created_at
)
VALUES
(
'9999-12-31 23:59:59'
,
'9999-12-31 23:59:59'
);
SELECT
*
FROM
diaries
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/column_datetime_32bit_out_of_range.test
View file @
6f42c3c5
...
...
@@ -28,7 +28,7 @@ CREATE TABLE diaries (
)
DEFAULT
CHARSET
UTF8
;
SHOW
CREATE
TABLE
diaries
;
INSERT
INTO
diaries
(
title
,
created_at
)
INSERT
I
GNORE
I
NTO
diaries
(
title
,
created_at
)
VALUES
(
'2012'
,
'2012'
);
SELECT
*
FROM
diaries
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_32bit_equal.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
INTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"9999-12-31"
);
INSERT
INTO
ranges
VALUES
(
3
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
INTO
ranges
VALUES
(
4
,
"9999-12-31"
,
"1000-01-01"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
"9999-12-31"
,
"1000-01-01"
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
WHERE
start
=
"1000-01-01"
AND
end
=
"9999-12-31"
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_32bit_asc.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
INTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
INTO
ranges
VALUES
(
3
,
"9999-12-31"
,
"1000-01-01"
);
INSERT
INTO
ranges
VALUES
(
4
,
"1000-01-01"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
"9999-12-31"
,
"1000-01-01"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
"1000-01-01"
,
"9999-12-31"
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
ORDER
BY
start
,
end
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_date_order_32bit_desc.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
INTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
INTO
ranges
VALUES
(
3
,
"9999-12-31"
,
"1000-01-01"
);
INSERT
INTO
ranges
VALUES
(
4
,
"1000-01-01"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
"2012-10-25"
,
"9999-12-31"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
"1000-01-01"
,
"2012-10-05"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
"9999-12-31"
,
"1000-01-01"
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
"1000-01-01"
,
"9999-12-31"
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
ORDER
BY
start
DESC
,
end
DESC
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_32bit_equal.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
1901
,
2012
);
INSERT
INTO
ranges
VALUES
(
2
,
1901
,
2155
);
INSERT
INTO
ranges
VALUES
(
3
,
2012
,
2155
);
INSERT
INTO
ranges
VALUES
(
4
,
2155
,
1901
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
1901
,
2012
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
1901
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
2012
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
2155
,
1901
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
WHERE
start
=
1901
AND
end
=
2155
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_order_32bit_asc.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
2012
,
2155
);
INSERT
INTO
ranges
VALUES
(
2
,
1901
,
2012
);
INSERT
INTO
ranges
VALUES
(
3
,
2155
,
1901
);
INSERT
INTO
ranges
VALUES
(
4
,
1901
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
2012
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
1901
,
2012
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
2155
,
1901
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
1901
,
2155
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
ORDER
BY
start
,
end
;
...
...
storage/mroonga/mysql-test/mroonga/storage/t/index_multiple_column_unique_year_order_32bit_desc.test
View file @
6f42c3c5
...
...
@@ -29,10 +29,10 @@ CREATE TABLE ranges (
UNIQUE
KEY
range_key
(
start
,
end
)
);
INSERT
INTO
ranges
VALUES
(
1
,
2012
,
2155
);
INSERT
INTO
ranges
VALUES
(
2
,
1901
,
2012
);
INSERT
INTO
ranges
VALUES
(
3
,
2155
,
1901
);
INSERT
INTO
ranges
VALUES
(
4
,
1901
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
1
,
2012
,
2155
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
2
,
1901
,
2012
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
3
,
2155
,
1901
);
INSERT
I
GNORE
I
NTO
ranges
VALUES
(
4
,
1901
,
2155
);
SELECT
*
FROM
ranges
FORCE
INDEX
(
range_key
)
ORDER
BY
start
DESC
,
end
DESC
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment