diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index f5d30f69978..7774fce97c0 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -1118,7 +1118,7 @@ int check_that_all_fields_are_given_values(THD *thd, TABLE *entry, table_list= (table_list->belong_to_view ? table_list->belong_to_view : table_list); - view= (table_list->view); + view= (bool)(table_list->view); } if (view) {