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
29fd049a
Commit
29fd049a
authored
Jan 08, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Item_user_var_as_out_param::name to org_name
Rename was done as the old 'name' hide the original item name.
parent
b9b17e63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
sql/item_func.cc
sql/item_func.cc
+2
-2
sql/item_func.h
sql/item_func.h
+3
-2
No files found.
sql/item_func.cc
View file @
29fd049a
...
...
@@ -5476,7 +5476,7 @@ bool Item_user_var_as_out_param::fix_fields(THD *thd, Item **ref)
DBUG_ASSERT
(
fixed
==
0
);
DBUG_ASSERT
(
thd
->
lex
->
exchange
);
if
(
Item
::
fix_fields
(
thd
,
ref
)
||
!
(
entry
=
get_variable
(
&
thd
->
user_vars
,
&
name
,
1
)))
!
(
entry
=
get_variable
(
&
thd
->
user_vars
,
&
org_
name
,
1
)))
return
TRUE
;
entry
->
type
=
STRING_RESULT
;
/*
...
...
@@ -5537,7 +5537,7 @@ my_decimal* Item_user_var_as_out_param::val_decimal(my_decimal *decimal_buffer)
void
Item_user_var_as_out_param
::
print_for_load
(
THD
*
thd
,
String
*
str
)
{
str
->
append
(
'@'
);
append_identifier
(
thd
,
str
,
name
.
str
,
name
.
length
);
append_identifier
(
thd
,
str
,
&
org_name
);
}
...
...
sql/item_func.h
View file @
29fd049a
...
...
@@ -2485,13 +2485,14 @@ class Item_func_get_user_var :public Item_func_user_var,
*/
class
Item_user_var_as_out_param
:
public
Item
{
LEX_CSTRING
name
;
LEX_CSTRING
org_
name
;
user_var_entry
*
entry
;
public:
Item_user_var_as_out_param
(
THD
*
thd
,
const
LEX_CSTRING
*
a
)
:
Item
(
thd
)
,
name
(
*
a
)
:
Item
(
thd
)
{
DBUG_ASSERT
(
a
->
length
<
UINT_MAX32
);
org_name
=
*
a
;
set_name
(
thd
,
a
->
str
,
(
uint
)
a
->
length
,
system_charset_info
);
}
/* We should return something different from FIELD_ITEM here */
...
...
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