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
f06f1ed3
Commit
f06f1ed3
authored
Jan 14, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Testcase backport: Bug#43249
parent
dc37d0ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
mysql-test/r/innodb_mrr.result
mysql-test/r/innodb_mrr.result
+12
-0
mysql-test/t/innodb_mrr.test
mysql-test/t/innodb_mrr.test
+11
-0
No files found.
mysql-test/r/innodb_mrr.result
View file @
f06f1ed3
...
@@ -703,3 +703,15 @@ AB Sweden
...
@@ -703,3 +703,15 @@ AB Sweden
MS United States of Ame
MS United States of Ame
JA USA
JA USA
DROP TABLE t1,t2;
DROP TABLE t1,t2;
#
# Testcase backport: Bug#43249
#
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 DATE, PRIMARY KEY(c1), UNIQUE INDEX(c2)) engine=innodb;
INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01');
SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
c1 c2 c3
08:29:45 NULL 2009-02-01
SELECT * FROM t1 WHERE c2 <=> NULL ORDER BY c2 LIMIT 2;
c1 c2 c3
08:29:45 NULL 2009-02-01
drop table `t1`;
mysql-test/t/innodb_mrr.test
View file @
f06f1ed3
...
@@ -401,3 +401,14 @@ SELECT * FROM t2;
...
@@ -401,3 +401,14 @@ SELECT * FROM t2;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# Testcase backport: Bug#43249
--
echo
#
CREATE
TABLE
t1
(
c1
TIME
NOT
NULL
,
c2
TIME
NULL
,
c3
DATE
,
PRIMARY
KEY
(
c1
),
UNIQUE
INDEX
(
c2
))
engine
=
innodb
;
INSERT
INTO
t1
VALUES
(
'8:29:45'
,
NULL
,
'2009-02-01'
);
# first time, good results:
SELECT
*
FROM
t1
WHERE
c2
<=>
NULL
ORDER
BY
c2
LIMIT
2
;
# second time, bad results:
SELECT
*
FROM
t1
WHERE
c2
<=>
NULL
ORDER
BY
c2
LIMIT
2
;
drop
table
`t1`
;
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