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
9988a423
Commit
9988a423
authored
Jun 04, 2018
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16379 Move Item_basic_const::used_table_map to Item_cache
parent
c3a4dcd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
sql/item.h
sql/item.h
+10
-6
No files found.
sql/item.h
View file @
9988a423
...
...
@@ -2524,11 +2524,8 @@ class Item_basic_value :public Item
class
Item_basic_constant
:
public
Item_basic_value
{
table_map
used_table_map
;
public:
Item_basic_constant
(
THD
*
thd
)
:
Item_basic_value
(
thd
),
used_table_map
(
0
)
{};
void
set_used_tables
(
table_map
map
)
{
used_table_map
=
map
;
}
table_map
used_tables
()
const
{
return
used_table_map
;
}
Item_basic_constant
(
THD
*
thd
)
:
Item_basic_value
(
thd
)
{};
bool
check_vcol_func_processor
(
void
*
arg
)
{
return
FALSE
;}
virtual
Item_basic_constant
*
make_string_literal_concat
(
THD
*
thd
,
const
LEX_CSTRING
*
)
...
...
@@ -6248,12 +6245,15 @@ class Item_cache: public Item_basic_constant,
cache_value() will set this flag to TRUE.
*/
bool
value_cached
;
table_map
used_table_map
;
public:
Item_cache
(
THD
*
thd
)
:
Item_basic_constant
(
thd
),
Type_handler_hybrid_field_type
(
&
type_handler_string
),
example
(
0
),
cached_field
(
0
),
value_cached
(
0
)
value_cached
(
0
),
used_table_map
(
0
)
{
fixed
=
1
;
maybe_null
=
1
;
...
...
@@ -6264,7 +6264,8 @@ class Item_cache: public Item_basic_constant,
Item_basic_constant
(
thd
),
Type_handler_hybrid_field_type
(
handler
),
example
(
0
),
cached_field
(
0
),
value_cached
(
0
)
value_cached
(
0
),
used_table_map
(
0
)
{
fixed
=
1
;
maybe_null
=
1
;
...
...
@@ -6281,6 +6282,9 @@ class Item_cache: public Item_basic_constant,
cached_field
=
((
Item_field
*
)
item
)
->
field
;
return
0
;
};
void
set_used_tables
(
table_map
map
)
{
used_table_map
=
map
;
}
table_map
used_tables
()
const
{
return
used_table_map
;
}
enum
Type
type
()
const
{
return
CACHE_ITEM
;
}
const
Type_handler
*
type_handler
()
const
...
...
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