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
4c836e8d
Commit
4c836e8d
authored
Feb 17, 2003
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with ISNULL on fields that could not be null
parent
9dd13a9a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+10
-8
No files found.
sql/item_cmpfunc.h
View file @
4c836e8d
...
@@ -449,19 +449,21 @@ class Item_func_isnull :public Item_bool_func
...
@@ -449,19 +449,21 @@ class Item_func_isnull :public Item_bool_func
void
update_used_tables
()
void
update_used_tables
()
{
{
if
(
!
args
[
0
]
->
maybe_null
)
if
(
!
args
[
0
]
->
maybe_null
)
used_tables_cache
=
0
;
/* is always false */
{
used_tables_cache
=
0
;
/* is always false */
cached_value
=
(
longlong
)
0
;
}
else
else
{
{
args
[
0
]
->
update_used_tables
();
args
[
0
]
->
update_used_tables
();
used_tables_cache
=
args
[
0
]
->
used_tables
();
if
(
!
(
used_tables_cache
=
args
[
0
]
->
used_tables
()))
}
if
(
!
used_tables_cache
)
{
{
/* Remember if the value is always NULL or never NULL */
/* Remember if the value is always NULL or never NULL */
args
[
0
]
->
val
();
args
[
0
]
->
val
();
cached_value
=
args
[
0
]
->
null_value
?
(
longlong
)
1
:
(
longlong
)
0
;
cached_value
=
args
[
0
]
->
null_value
?
(
longlong
)
1
:
(
longlong
)
0
;
}
}
}
}
}
optimize_type
select_optimize
()
const
{
return
OPTIMIZE_NULL
;
}
optimize_type
select_optimize
()
const
{
return
OPTIMIZE_NULL
;
}
};
};
...
...
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