summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-12-03 15:37:32 +0100
committerSachin Setiya <sachin.setiya@mariadb.com>2017-12-15 02:41:52 +0530
commit022b163ac8c008cb47b0c9d2f3c1d6fe1580651c (patch)
tree9ec2fc97a323539a6aba9e08f7345c6593507fd4 /sql/sql_base.cc
parent84726906c947e3021a9fd7628493bfe775e2f26f (diff)
downloadmariadb-git-022b163ac8c008cb47b0c9d2f3c1d6fe1580651c.tar.gz
Add tests for system and completely invisible columns
debug only
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index ef8d4afdd3c..b493b7d2b9e 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -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;