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
2e593af6
Commit
2e593af6
authored
Feb 12, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subquery optimizations: backport
- Fix valgrind failure: do initialize Item::is_expensive_cache.
parent
d10ca84f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
sql/item.cc
sql/item.cc
+3
-2
sql/item.h
sql/item.h
+3
-3
No files found.
sql/item.cc
View file @
2e593af6
...
...
@@ -373,8 +373,8 @@ int Item::save_str_value_in_field(Field *field, String *result)
Item
::
Item
()
:
rsize
(
0
),
name
(
0
),
orig_name
(
0
),
name_length
(
0
),
fixed
(
0
),
is_autogenerated_name
(
TRUE
),
is_expensive_cache
(
-
1
),
rsize
(
0
),
name
(
0
),
orig_name
(
0
),
name_length
(
0
),
fixed
(
0
),
is_autogenerated_name
(
TRUE
),
collation
(
&
my_charset_bin
,
DERIVATION_COERCIBLE
)
{
marker
=
0
;
...
...
@@ -410,6 +410,7 @@ Item::Item():
tables.
*/
Item
::
Item
(
THD
*
thd
,
Item
*
item
)
:
is_expensive_cache
(
-
1
),
rsize
(
0
),
str_value
(
item
->
str_value
),
name
(
item
->
name
),
...
...
sql/item.h
View file @
2e593af6
...
...
@@ -513,6 +513,9 @@ class Item {
enum
traverse_order
{
POSTFIX
,
PREFIX
};
/* Cache of the result of is_expensive(). */
int8
is_expensive_cache
;
/* Reuse size, only used by SP local variable assignment, otherwize 0 */
uint
rsize
;
...
...
@@ -878,9 +881,6 @@ class Item {
static
CHARSET_INFO
*
default_charset
();
virtual
CHARSET_INFO
*
compare_collation
()
{
return
NULL
;
}
/* Cache of the result of is_expensive(). */
int8
is_expensive_cache
;
virtual
bool
walk
(
Item_processor
processor
,
bool
walk_subquery
,
uchar
*
arg
)
{
return
(
this
->*
processor
)(
arg
);
...
...
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