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
0736cddb
Commit
0736cddb
authored
Sep 07, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Field_num::get_equal_const_item() appeared to be in a wrong file (item.cc).
Moving to field.cc.
parent
4be6eee8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
19 deletions
+19
-19
sql/field.cc
sql/field.cc
+19
-0
sql/item.cc
sql/item.cc
+0
-19
No files found.
sql/field.cc
View file @
0736cddb
...
...
@@ -1402,6 +1402,25 @@ Item *Field_num::convert_zerofill_number_to_string(THD *thd, Item *item) const
}
Item
*
Field_num
::
get_equal_const_item
(
THD
*
thd
,
const
Context
&
ctx
,
Item_field
*
field_item
,
Item
*
const_item
)
{
DBUG_ASSERT
(
const_item
->
const_item
());
if
((
flags
&
ZEROFILL_FLAG
)
&&
IS_NUM
(
type
()))
{
if
(
ctx
.
subst_constraint
()
==
IDENTITY_SUBST
)
return
convert_zerofill_number_to_string
(
thd
,
const_item
);
else
{
DBUG_ASSERT
(
ctx
.
compare_type
()
!=
STRING_RESULT
);
return
field_item
;
}
}
return
const_item
;
}
/**
Test if given number is a int.
...
...
sql/item.cc
View file @
0736cddb
...
...
@@ -5370,25 +5370,6 @@ Item *Item_field::propagate_equal_fields(THD *thd,
}
Item
*
Field_num
::
get_equal_const_item
(
THD
*
thd
,
const
Context
&
ctx
,
Item_field
*
field_item
,
Item
*
const_item
)
{
DBUG_ASSERT
(
const_item
->
const_item
());
if
((
flags
&
ZEROFILL_FLAG
)
&&
IS_NUM
(
type
()))
{
if
(
ctx
.
subst_constraint
()
==
IDENTITY_SUBST
)
return
convert_zerofill_number_to_string
(
thd
,
const_item
);
else
{
DBUG_ASSERT
(
ctx
.
compare_type
()
!=
STRING_RESULT
);
return
field_item
;
}
}
return
const_item
;
}
/**
Mark the item to not be part of substitution if it's not a binary item.
...
...
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