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
39e6de43
Commit
39e6de43
authored
Jan 25, 2007
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#24127: wrong result for (null,not-null) IN (SELECT a,b ...):
Fixed typo problem that surfaced after the merge
parent
cced6255
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
sql/sql_select.cc
View file @
39e6de43
...
...
@@ -2973,14 +2973,14 @@ add_key_fields(JOIN *join, KEY_FIELD **key_fields, uint *and_level,
if
(
cond
->
type
()
==
Item
::
FUNC_ITEM
&&
((
Item_func
*
)
cond
)
->
functype
()
==
Item_func
::
TRIG_COND_FUNC
)
{
cond
=
((
Item_func
*
)
cond
)
->
arguments
()[
0
];
Item
*
cond_arg
=
((
Item_func
*
)
cond
)
->
arguments
()[
0
];
if
(
!
join
->
group_list
&&
!
join
->
order
&&
join
->
unit
->
item
&&
join
->
unit
->
item
->
substype
()
==
Item_subselect
::
IN_SUBS
&&
!
join
->
unit
->
first_select
()
->
next_select
())
{
KEY_FIELD
*
save
=
*
key_fields
;
add_key_fields
(
join
,
key_fields
,
and_level
,
cond
,
usable_tables
,
add_key_fields
(
join
,
key_fields
,
and_level
,
cond
_arg
,
usable_tables
,
sargables
);
// Indicate that this ref access candidate is for subquery lookup:
for
(;
save
!=
*
key_fields
;
save
++
)
...
...
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