File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1393,7 +1393,7 @@ class Field: public Value_source
1393
1393
- If field is char/varchar/.. and is not part of write set.
1394
1394
TRUE - If field is char/varchar/.. and is part of write set.
1395
1395
*/
1396
- virtual bool is_updatable () const { return FALSE ; }
1396
+ virtual bool is_varchar_and_in_write_set () const { return FALSE ; }
1397
1397
1398
1398
/* Check whether the field can be used as a join attribute in hash join */
1399
1399
virtual bool hash_join_is_possible () { return TRUE ; }
@@ -1702,7 +1702,7 @@ class Field_longstr :public Field_str
1702
1702
int store_decimal (const my_decimal *d);
1703
1703
uint32 max_data_length () const ;
1704
1704
1705
- bool is_updatable () const
1705
+ bool is_varchar_and_in_write_set () const
1706
1706
{
1707
1707
DBUG_ASSERT (table && table->write_set );
1708
1708
return bitmap_is_set (table->write_set , field_index);
@@ -3204,7 +3204,8 @@ class Field_blob :public Field_longstr {
3204
3204
int store_field (Field *from)
3205
3205
{ // Be sure the value is stored
3206
3206
from->val_str (&value);
3207
- if (table->copy_blobs || (!value.is_alloced () && from->is_updatable ()))
3207
+ if (table->copy_blobs ||
3208
+ (!value.is_alloced () && from->is_varchar_and_in_write_set ()))
3208
3209
value.copy ();
3209
3210
return store (value.ptr (), value.length (), from->charset ());
3210
3211
}
You can’t perform that action at this time.
0 commit comments