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
03a0623f
Commit
03a0623f
authored
Jan 13, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: rename a method
parent
46ae2104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/field.h
sql/field.h
+4
-3
No files found.
sql/field.h
View file @
03a0623f
...
@@ -1393,7 +1393,7 @@ class Field: public Value_source
...
@@ -1393,7 +1393,7 @@ class Field: public Value_source
- If field is char/varchar/.. and is not part of write set.
- If field is char/varchar/.. and is not part of write set.
TRUE - If field is char/varchar/.. and is part of write set.
TRUE - If field is char/varchar/.. and is part of write set.
*/
*/
virtual
bool
is_
updatable
()
const
{
return
FALSE
;
}
virtual
bool
is_
varchar_and_in_write_set
()
const
{
return
FALSE
;
}
/* Check whether the field can be used as a join attribute in hash join */
/* Check whether the field can be used as a join attribute in hash join */
virtual
bool
hash_join_is_possible
()
{
return
TRUE
;
}
virtual
bool
hash_join_is_possible
()
{
return
TRUE
;
}
...
@@ -1702,7 +1702,7 @@ class Field_longstr :public Field_str
...
@@ -1702,7 +1702,7 @@ class Field_longstr :public Field_str
int
store_decimal
(
const
my_decimal
*
d
);
int
store_decimal
(
const
my_decimal
*
d
);
uint32
max_data_length
()
const
;
uint32
max_data_length
()
const
;
bool
is_
updatable
()
const
bool
is_
varchar_and_in_write_set
()
const
{
{
DBUG_ASSERT
(
table
&&
table
->
write_set
);
DBUG_ASSERT
(
table
&&
table
->
write_set
);
return
bitmap_is_set
(
table
->
write_set
,
field_index
);
return
bitmap_is_set
(
table
->
write_set
,
field_index
);
...
@@ -3204,7 +3204,8 @@ class Field_blob :public Field_longstr {
...
@@ -3204,7 +3204,8 @@ class Field_blob :public Field_longstr {
int
store_field
(
Field
*
from
)
int
store_field
(
Field
*
from
)
{
// Be sure the value is stored
{
// Be sure the value is stored
from
->
val_str
(
&
value
);
from
->
val_str
(
&
value
);
if
(
table
->
copy_blobs
||
(
!
value
.
is_alloced
()
&&
from
->
is_updatable
()))
if
(
table
->
copy_blobs
||
(
!
value
.
is_alloced
()
&&
from
->
is_varchar_and_in_write_set
()))
value
.
copy
();
value
.
copy
();
return
store
(
value
.
ptr
(),
value
.
length
(),
from
->
charset
());
return
store
(
value
.
ptr
(),
value
.
length
(),
from
->
charset
());
}
}
...
...
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