summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2017-10-13 18:41:38 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2017-10-13 19:32:38 +0200
commit3b7aa3017b65dcf11d33617e954e1cb471703582 (patch)
tree13fcd88300c744478713fc9d975a2fbce50723a8
parent235b68299bc112f9cb7be97af8d01bf904919a6b (diff)
downloadmariadb-git-3b7aa3017b65dcf11d33617e954e1cb471703582.tar.gz
Cleanup usage of DBUG_ASSERTS.
-rw-r--r--sql/item.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 3100a4e3408..a8913e97fe9 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -8075,7 +8075,6 @@ bool Item_direct_view_ref::send(Protocol *protocol, String *buffer)
bool Item_direct_view_ref::fix_fields(THD *thd, Item **reference)
{
- DBUG_ASSERT(1);
/* view fild reference must be defined */
DBUG_ASSERT(*ref);
/* (*ref)->check_cols() will be made in Item_direct_ref::fix_fields */
@@ -9959,7 +9958,7 @@ void Item_direct_view_ref::update_used_tables()
table_map Item_direct_view_ref::used_tables() const
{
- DBUG_ASSERT(null_ref_table);
+ DBUG_ASSERT(fixed);
if (get_depended_from())
return OUTER_REF_TABLE_BIT;