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
83ea16bf
Commit
83ea16bf
authored
Sep 25, 2012
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.1 => 5.5
parents
665cf9d8
b079b388
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+19
-0
No files found.
sql/item_cmpfunc.cc
View file @
83ea16bf
...
...
@@ -3156,6 +3156,15 @@ void Item_func_case::fix_length_and_dec()
return
;
}
}
/*
Set cmp_context of all WHEN arguments. This prevents
Item_field::equal_fields_propagator() from transforming a
zerofill argument into a string constant. Such a change would
require rebuilding cmp_items.
*/
for
(
i
=
0
;
i
<
ncases
;
i
+=
2
)
args
[
i
]
->
cmp_context
=
item_cmp_type
(
left_result_type
,
args
[
i
]
->
result_type
());
}
if
(
else_expr_num
==
-
1
||
args
[
else_expr_num
]
->
maybe_null
)
...
...
@@ -4143,6 +4152,16 @@ void Item_func_in::fix_length_and_dec()
}
}
}
/*
Set cmp_context of all arguments. This prevents
Item_field::equal_fields_propagator() from transforming a zerofill integer
argument into a string constant. Such a change would require rebuilding
cmp_itmes.
*/
for
(
arg
=
args
+
1
,
arg_end
=
args
+
arg_count
;
arg
!=
arg_end
;
arg
++
)
{
arg
[
0
]
->
cmp_context
=
item_cmp_type
(
left_result_type
,
arg
[
0
]
->
result_type
());
}
max_length
=
1
;
}
...
...
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