diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-02-28 10:00:31 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-02-28 10:00:31 +0100 |
commit | 41c760b121494de2c6d58f8c1a600d599ad4e0a5 (patch) | |
tree | a80a0f7316ffa843437ad24fc0ba7fbd4ee09e14 /sql/item.h | |
parent | 57cdc561fc2b97c3d1d2b318fc0fa2410568c3d6 (diff) | |
parent | 8d0238a6d8d641939730bdcd1ac4928b2c3c413d (diff) | |
download | mariadb-git-41c760b121494de2c6d58f8c1a600d599ad4e0a5.tar.gz |
merge
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h index 5e3c7c25042..1faed26e1ee 100644 --- a/sql/item.h +++ b/sql/item.h @@ -2110,7 +2110,11 @@ public: tab->merge_keys.merge(field->part_of_key); if (tab->read_set) bitmap_fast_test_and_set(tab->read_set, field->field_index); - if (field->vcol_info) + /* + Do not mark a self-referecing virtual column. + Such virtual columns are reported as invalid. + */ + if (field->vcol_info && tab->vcol_set) tab->mark_virtual_col(field); } } @@ -3552,6 +3556,7 @@ public: void cleanup() { null_ref_table= NULL; + item_equal= NULL; Item_direct_ref::cleanup(); } }; |