1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-14785 SYSTEM_INVISIBLE behaviour not consistent

Hide INVISIBLE_SYSTEM columns from writes and from fix_vcol_expr().
This commit is contained in:
Sergei Golubchik
2018-02-10 20:34:18 +01:00
parent 34ee747f55
commit d0f5e56a20
5 changed files with 159 additions and 12 deletions

View File

@ -5648,6 +5648,11 @@ find_field_in_table(THD *thd, TABLE *table, const char *name, size_t length,
if (field->invisible == INVISIBLE_FULL &&
DBUG_EVALUATE_IF("test_completely_invisible", 0, 1))
DBUG_RETURN((Field*)0);
if (field->invisible == INVISIBLE_SYSTEM &&
thd->column_usage != MARK_COLUMNS_READ &&
thd->column_usage != COLUMNS_READ)
DBUG_RETURN((Field*)0);
}
else
{