summaryrefslogtreecommitdiff
path: root/sql/field.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-02-10 21:15:24 +0100
committerSergei Golubchik <serg@mariadb.org>2016-02-15 13:02:21 +0100
commit3c6b771753d8666120fa3cb81d1586d214d85a58 (patch)
tree3eecb28fefdd424197f07554fe2ee8c8f0517161 /sql/field.h
parent48ea84f057bd510a4c2aa4ee7becb3328259469b (diff)
downloadmariadb-git-3c6b771753d8666120fa3cb81d1586d214d85a58.tar.gz
MDEV-9045 Inconsistent handling of "ALGORITHM=INPLACE" with PERSISTENT generated columns
Only set Alter_inplace_info::ALTER_COLUMN_VCOL flag if a vcol might be affected by the ALTER TABLE statement
Diffstat (limited to 'sql/field.h')
-rw-r--r--sql/field.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h
index 894f0507233..81b16606e8b 100644
--- a/sql/field.h
+++ b/sql/field.h
@@ -283,6 +283,13 @@ public:
{
in_partitioning_expr= TRUE;
}
+ bool is_equal(Virtual_column_info* vcol)
+ {
+ return field_type == vcol->get_real_type()
+ && stored_in_db == vcol->is_stored()
+ && expr_str.length == vcol->expr_str.length
+ && memcmp(expr_str.str, vcol->expr_str.str, expr_str.length) == 0;
+ }
};
class Field