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
ada959ed
Commit
ada959ed
authored
Mar 14, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anotehr fix for Item_func_isnotnull::not_null_tables()
parent
a6b3b8fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mysql-test/r/join_outer.result
mysql-test/r/join_outer.result
+4
-0
mysql-test/t/join_outer.test
mysql-test/t/join_outer.test
+1
-0
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+2
-1
No files found.
mysql-test/r/join_outer.result
View file @
ada959ed
...
...
@@ -653,6 +653,10 @@ i i i
select * from t1 natural left join t2 where (t2.i is not null)=0;
i i
1 NULL
select * from t1 natural left join t2 where (t2.i is not null) is not null;
i i
1 NULL
2 2
drop table t1,t2,t3;
create table t1 (f1 integer,f2 integer,f3 integer);
create table t2 (f2 integer,f4 integer);
...
...
mysql-test/t/join_outer.test
View file @
ada959ed
...
...
@@ -431,6 +431,7 @@ insert into t2 values(2),(3);
insert
into
t3
values
(
2
),(
4
);
select
*
from
t1
natural
left
join
t2
natural
left
join
t3
;
select
*
from
t1
natural
left
join
t2
where
(
t2
.
i
is
not
null
)
=
0
;
select
*
from
t1
natural
left
join
t2
where
(
t2
.
i
is
not
null
)
is
not
null
;
drop
table
t1
,
t2
,
t3
;
#
...
...
sql/item_cmpfunc.h
View file @
ada959ed
...
...
@@ -916,7 +916,8 @@ class Item_func_isnotnull :public Item_bool_func
}
const
char
*
func_name
()
const
{
return
"isnotnull"
;
}
optimize_type
select_optimize
()
const
{
return
OPTIMIZE_NULL
;
}
table_map
not_null_tables
()
const
{
return
abort_on_null
?
used_tables
()
:
0
;
}
table_map
not_null_tables
()
const
{
return
abort_on_null
?
not_null_tables_cache
:
0
;
}
Item
*
neg_transformer
(
THD
*
thd
);
void
print
(
String
*
str
);
CHARSET_INFO
*
compare_collation
()
{
return
args
[
0
]
->
collation
.
collation
;
}
...
...
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