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
4b7d4b4f
Commit
4b7d4b4f
authored
Oct 27, 2008
by
Evgeny Potemkin
Browse files
Options
Browse Files
Download
Plain Diff
Merged fix for the bug#37870.
parents
918b26b2
a0ae0507
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+4
-4
No files found.
sql/item_cmpfunc.cc
View file @
4b7d4b4f
...
...
@@ -413,11 +413,11 @@ static bool convert_constant_item(THD *thd, Item_field *field_item,
thd
->
count_cuted_fields
=
CHECK_FIELD_IGNORE
;
/*
Store the value of the field if it references an outer field because
Store the value of the field
/constant
if it references an outer field because
the call to save_in_field below overrides that value.
Don't s
tore it
for EXPLAIN since it's not initialized.
Don't s
ave value of the field
for EXPLAIN since it's not initialized.
*/
if
(
field_item
->
depended_from
&&
!
thd
->
lex
->
describe
)
if
(
field_item
->
depended_from
&&
(
!
thd
->
lex
->
describe
||
field_item
->
const_item
())
)
orig_field_val
=
field
->
val_int
();
if
(
!
(
*
item
)
->
is_null
()
&&
!
(
*
item
)
->
save_in_field
(
field
,
1
))
{
...
...
@@ -428,7 +428,7 @@ static bool convert_constant_item(THD *thd, Item_field *field_item,
result
=
1
;
// Item was replaced
}
/* Restore the original field value. */
if
(
field_item
->
depended_from
&&
!
thd
->
lex
->
describe
)
if
(
field_item
->
depended_from
&&
(
!
thd
->
lex
->
describe
||
field_item
->
const_item
())
)
{
result
=
field
->
store
(
orig_field_val
,
TRUE
);
/* orig_field_val must be a valid value that can be restored back. */
...
...
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