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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7af71b74
Commit
7af71b74
authored
Mar 07, 2014
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
- Backport testcase from mysql-5.6
parent
b95c8ce5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
0 deletions
+31
-0
mysql-test/r/range.result
mysql-test/r/range.result
+11
-0
mysql-test/r/range_mrr_icp.result
mysql-test/r/range_mrr_icp.result
+11
-0
mysql-test/t/range.test
mysql-test/t/range.test
+9
-0
No files found.
mysql-test/r/range.result
View file @
7af71b74
...
@@ -2047,6 +2047,17 @@ f1 f2 f3 f4
...
@@ -2047,6 +2047,17 @@ f1 f2 f3 f4
DROP TABLE t1;
DROP TABLE t1;
DROP VIEW v3;
DROP VIEW v3;
#
#
# BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
#
CREATE TABLE t1 (pk INT PRIMARY KEY);
INSERT INTO t1 VALUES (1),(3),(5);
SELECT * FROM t1 WHERE pk <> 3 OR pk < 4;
pk
1
3
5
DROP TABLE t1;
#
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
#
#
create table t1(a int);
create table t1(a int);
...
...
mysql-test/r/range_mrr_icp.result
View file @
7af71b74
...
@@ -2049,6 +2049,17 @@ f1 f2 f3 f4
...
@@ -2049,6 +2049,17 @@ f1 f2 f3 f4
DROP TABLE t1;
DROP TABLE t1;
DROP VIEW v3;
DROP VIEW v3;
#
#
# BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
#
CREATE TABLE t1 (pk INT PRIMARY KEY);
INSERT INTO t1 VALUES (1),(3),(5);
SELECT * FROM t1 WHERE pk <> 3 OR pk < 4;
pk
1
3
5
DROP TABLE t1;
#
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
#
#
create table t1(a int);
create table t1(a int);
...
...
mysql-test/t/range.test
View file @
7af71b74
...
@@ -1639,6 +1639,15 @@ SELECT * FROM v3;
...
@@ -1639,6 +1639,15 @@ SELECT * FROM v3;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
DROP
VIEW
v3
;
DROP
VIEW
v3
;
--
echo
#
--
echo
# BUG#13731380: RANGE OPTIMIZER CALLS RECORDS_IN_RANGE() FOR OPEN RANGE
--
echo
#
CREATE
TABLE
t1
(
pk
INT
PRIMARY
KEY
);
INSERT
INTO
t1
VALUES
(
1
),(
3
),(
5
);
SELECT
*
FROM
t1
WHERE
pk
<>
3
OR
pk
<
4
;
DROP
TABLE
t1
;
--
echo
#
--
echo
#
--
echo
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
--
echo
# MDEV-5606: range optimizer: "x < y" is sargable, while "y > x" is not
--
echo
#
--
echo
#
...
...
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