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
7cac7d8c
Commit
7cac7d8c
authored
Feb 22, 2013
by
Annamalai Gurusami
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.1 to mysql-5.5
parents
45f176ef
31413eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
sql/set_var.h
sql/set_var.h
+15
-5
No files found.
sql/set_var.h
View file @
7cac7d8c
...
...
@@ -225,13 +225,23 @@ class set_var :public set_var_base
if
(
value_arg
&&
value_arg
->
type
()
==
Item
::
FIELD_ITEM
)
{
Item_field
*
item
=
(
Item_field
*
)
value_arg
;
if
(
!
(
value
=
new
Item_string
(
item
->
field_name
,
(
uint
)
strlen
(
item
->
field_name
),
system_charset_info
)))
// names are utf8
value
=
value_arg
;
/* Give error message later */
if
(
item
->
field_name
)
{
if
(
!
(
value
=
new
Item_string
(
item
->
field_name
,
(
uint
)
strlen
(
item
->
field_name
),
system_charset_info
)))
// names are utf8
value
=
value_arg
;
/* Give error message later */
}
else
{
/* Both Item_field and Item_insert_value will return the type as
Item::FIELD_ITEM. If the item->field_name is NULL, we assume the
object to be Item_insert_value. */
value
=
value_arg
;
}
}
else
value
=
value_arg
;
value
=
value_arg
;
}
int
check
(
THD
*
thd
);
int
update
(
THD
*
thd
);
...
...
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