summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-14 20:27:00 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-14 20:27:00 +0400
commitafe6eb499d7d5d9b4ba9de5746e78b43f25e31a4 (patch)
tree8755d77c5aca99ddc5bafc874e5f550be85e6f45 /sql/sql_base.cc
parente86010f909fb6b8c4ffd9d6df92991ac079e67e7 (diff)
downloadmariadb-git-afe6eb499d7d5d9b4ba9de5746e78b43f25e31a4.tar.gz
Revert "MDEV-20342 Turn Field::flags from a member to a method"
This reverts commit e86010f909fb6b8c4ffd9d6df92991ac079e67e7. Reverting on Monty's request, as this change makes merging things from 10.5 to 10.2 much harder.
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 84b41e94fc9..5f39f514b59 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -5723,7 +5723,7 @@ static void update_field_dependencies(THD *thd, Field *field, TABLE *table)
table->used_fields++;
}
if (table->get_fields_in_item_tree)
- field->add_flags(GET_FIXED_FIELDS_FLAG);
+ field->flags|= GET_FIXED_FIELDS_FLAG;
DBUG_VOID_RETURN;
}
@@ -8603,7 +8603,7 @@ static bool not_null_fields_have_null_values(TABLE *table)
if (ff != of)
{
// copy after-update flags to of, copy before-update flags to ff
- ff->swap_flags(of);
+ swap_variables(uint32, of->flags, ff->flags);
if (ff->is_real_null())
{
ff->set_notnull(); // for next row WHERE condition in UPDATE