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
923827e2
Commit
923827e2
authored
May 17, 2015
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7949: Item_field::used_tables() takes 0.29% in OLTP RO
Part 2: removed hack workaround for bug we do not have.
parent
fb4358f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sql/item_strfunc.cc
sql/item_strfunc.cc
+3
-4
No files found.
sql/item_strfunc.cc
View file @
923827e2
...
...
@@ -626,8 +626,7 @@ String *Item_func_concat::val_str(String *str)
if
(
!
(
res
=
args
[
0
]
->
val_str
(
str
)))
goto
null
;
use_as_buff
=
&
tmp_value
;
/* Item_subselect in --ps-protocol mode will state it as a non-const */
is_const
=
args
[
0
]
->
const_item
()
||
!
args
[
0
]
->
used_tables
();
is_const
=
args
[
0
]
->
const_item
();
for
(
i
=
1
;
i
<
arg_count
;
i
++
)
{
if
(
res
->
length
()
==
0
)
...
...
@@ -639,7 +638,7 @@ String *Item_func_concat::val_str(String *str)
non-empty argument. Because of this we need is_const to be
evaluated only for it.
*/
is_const
=
args
[
i
]
->
const_item
()
||
!
args
[
i
]
->
used_tables
()
;
is_const
=
args
[
i
]
->
const_item
();
}
else
{
...
...
@@ -986,7 +985,7 @@ String *Item_func_concat_ws::val_str(String *str)
for
(
i
=
1
;
i
<
arg_count
;
i
++
)
if
((
res
=
args
[
i
]
->
val_str
(
str
)))
{
is_const
=
args
[
i
]
->
const_item
()
||
!
args
[
i
]
->
used_tables
()
;
is_const
=
args
[
i
]
->
const_item
();
break
;
}
...
...
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