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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
438a7d01
Commit
438a7d01
authored
Jun 15, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We don't need tmp_value member in the Item_func_left.
parent
71eee450
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
sql/item_strfunc.cc
sql/item_strfunc.cc
+2
-2
sql/item_strfunc.h
sql/item_strfunc.h
+0
-1
No files found.
sql/item_strfunc.cc
View file @
438a7d01
...
@@ -952,8 +952,8 @@ String *Item_func_left::val_str(String *str)
...
@@ -952,8 +952,8 @@ String *Item_func_left::val_str(String *str)
return
&
my_empty_string
;
return
&
my_empty_string
;
if
(
res
->
length
()
<=
(
uint
)
length
)
if
(
res
->
length
()
<=
(
uint
)
length
)
return
res
;
return
res
;
tmp
_value
.
set
(
*
res
,
0
,
res
->
charpos
(
length
));
str
_value
.
set
(
*
res
,
0
,
res
->
charpos
(
length
));
return
&
tmp
_value
;
return
&
str
_value
;
}
}
...
...
sql/item_strfunc.h
View file @
438a7d01
...
@@ -180,7 +180,6 @@ public:
...
@@ -180,7 +180,6 @@ public:
class
Item_func_left
:
public
Item_str_func
class
Item_func_left
:
public
Item_str_func
{
{
String
tmp_value
;
public:
public:
Item_func_left
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
{}
Item_func_left
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
{}
String
*
val_str
(
String
*
);
String
*
val_str
(
String
*
);
...
...
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