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
a99bc695
Commit
a99bc695
authored
Oct 10, 2008
by
Gleb Shchepa
Browse files
Options
Browse Files
Download
Plain Diff
manual merge 5.0-bugteam --> 5.1-bugteam
parents
fe3aee30
27f4c34b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletion
+39
-1
mysql-test/r/subselect3.result
mysql-test/r/subselect3.result
+16
-0
mysql-test/t/subselect3.test
mysql-test/t/subselect3.test
+22
-0
sql/opt_range.cc
sql/opt_range.cc
+1
-1
No files found.
mysql-test/r/subselect3.result
View file @
a99bc695
...
@@ -779,6 +779,22 @@ SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
...
@@ -779,6 +779,22 @@ SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
1
1
1
1
DROP TABLE t1, t2;
DROP TABLE t1, t2;
CREATE TABLE t1 (
pk INT PRIMARY KEY,
int_key INT,
varchar_key VARCHAR(5) UNIQUE,
varchar_nokey VARCHAR(5)
);
INSERT INTO t1 VALUES (9, 7,NULL,NULL), (10,8,'p' ,'p');
SELECT varchar_nokey
FROM t1
WHERE NULL NOT IN (
SELECT INNR.pk FROM t1 AS INNR2
LEFT JOIN t1 AS INNR ON ( INNR2.int_key = INNR.int_key )
WHERE INNR.varchar_key > 'n{'
);
varchar_nokey
DROP TABLE t1;
End of 5.0 tests
End of 5.0 tests
create table t0 (a int);
create table t0 (a int);
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
insert into t0 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
...
...
mysql-test/t/subselect3.test
View file @
a99bc695
...
@@ -618,6 +618,28 @@ SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
...
@@ -618,6 +618,28 @@ SELECT 1 FROM t1 WHERE t1.a NOT IN (SELECT 1 FROM t1, t2 WHERE 0);
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
#
# Bug #37894: Assertion in init_read_record_seq in handler.h line 1444
#
CREATE
TABLE
t1
(
pk
INT
PRIMARY
KEY
,
int_key
INT
,
varchar_key
VARCHAR
(
5
)
UNIQUE
,
varchar_nokey
VARCHAR
(
5
)
);
INSERT
INTO
t1
VALUES
(
9
,
7
,
NULL
,
NULL
),
(
10
,
8
,
'p'
,
'p'
);
SELECT
varchar_nokey
FROM
t1
WHERE
NULL
NOT
IN
(
SELECT
INNR
.
pk
FROM
t1
AS
INNR2
LEFT
JOIN
t1
AS
INNR
ON
(
INNR2
.
int_key
=
INNR
.
int_key
)
WHERE
INNR
.
varchar_key
>
'n{'
);
DROP
TABLE
t1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
#
#
...
...
sql/opt_range.cc
View file @
a99bc695
...
@@ -1151,7 +1151,7 @@ int QUICK_RANGE_SELECT::init()
...
@@ -1151,7 +1151,7 @@ int QUICK_RANGE_SELECT::init()
if
(
file
->
inited
!=
handler
::
NONE
)
if
(
file
->
inited
!=
handler
::
NONE
)
file
->
ha_index_or_rnd_end
();
file
->
ha_index_or_rnd_end
();
DBUG_RETURN
(
error
=
file
->
ha_index_init
(
index
,
1
)
);
DBUG_RETURN
(
FALSE
);
}
}
...
...
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