summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2022-11-29 20:40:07 +0100
committerSergei Golubchik <serg@mariadb.org>2022-11-29 20:44:05 +0100
commit5fe6ba34a6e09c887164b436d7226263bc8c41a0 (patch)
tree1594b7ef48b74e8b215679e56325e18320d3b006 /sql/field.h
parent219aedc134226ecb6024fc8c8b757551d88573b2 (diff)
downloadmariadb-git-bb-10.11-oalter.tar.gz
MDEV-29069 follow-up: improve DEFAULT rulesbb-10.11-oalter
previously, fields with DEFAULTs were allowed just when expression is deterministic. In case of online alter, we should recursively check that underlying fields of expression also either have explicit values, or have DEFAULT following this validity rule.
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.h b/sql/field.h
index 007f2ea6710..c8068124318 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -1192,7 +1192,7 @@ public:
{
bitmap_set_bit(&table->has_value_set, field_index);
}
- bool has_explicit_value()
+ bool has_explicit_value() const
{
return bitmap_is_set(&table->has_value_set, field_index);
}