1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Add tests for system and completely invisible columns

debug only
This commit is contained in:
Sergei Golubchik
2017-12-03 15:37:32 +01:00
committed by Sachin Setiya
parent 84726906c9
commit 022b163ac8
5 changed files with 509 additions and 3 deletions

View File

@ -5528,7 +5528,8 @@ find_field_in_table(THD *thd, TABLE *table, const char *name, uint length,
if (field_ptr && *field_ptr)
{
if ((*field_ptr)->field_visibility == COMPLETELY_INVISIBLE)
if ((*field_ptr)->field_visibility == COMPLETELY_INVISIBLE &&
DBUG_EVALUATE_IF("test_completely_invisible", 0, 1))
DBUG_RETURN((Field*)0);
*cached_field_index_ptr= field_ptr - table->field;