summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-14 10:26:18 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-14 13:33:01 +0400
commite86010f909fb6b8c4ffd9d6df92991ac079e67e7 (patch)
treee30f0335d75b480ffe1f546c4b0f86b530c4558c /sql/unireg.cc
parentfa21952e25e3defef172e1f2074e3e2d5b091f5c (diff)
downloadmariadb-git-e86010f909fb6b8c4ffd9d6df92991ac079e67e7.tar.gz
MDEV-20342 Turn Field::flags from a member to a method
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index 7130b3e5d8a..6761172ff93 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -104,7 +104,7 @@ static uchar *extra2_write_field_properties(uchar *pos,
while (Create_field *cf= it++)
{
uchar flags= cf->invisible;
- if (cf->flags & VERS_UPDATE_UNVERSIONED_FLAG)
+ if (cf->flags() & VERS_UPDATE_UNVERSIONED_FLAG)
flags|= VERS_OPTIMIZED_UPDATE;
*pos++= flags;
}
@@ -141,7 +141,7 @@ bool has_extra2_field_flags(List<Create_field> &create_fields)
{
if (f->invisible)
return true;
- if (f->flags & VERS_UPDATE_UNVERSIONED_FLAG)
+ if (f->flags() & VERS_UPDATE_UNVERSIONED_FLAG)
return true;
}
return false;
@@ -1147,7 +1147,7 @@ static bool make_empty_rec(THD *thd, uchar *buff, uint table_options,
Field *regfield= tmp.make_field(&share, thd->mem_root, &addr,
field->type_handler(),
&field->field_name,
- field->flags);
+ field->flags());
if (!regfield)
{
error= true;
@@ -1157,7 +1157,7 @@ static bool make_empty_rec(THD *thd, uchar *buff, uint table_options,
/* save_in_field() will access regfield->table->in_use */
regfield->init(&table);
- if (!(field->flags & NOT_NULL_FLAG))
+ if (!(field->flags() & NOT_NULL_FLAG))
{
*regfield->null_ptr|= regfield->null_bit;
null_count++;