Commit 14853c80 authored by serg@serg.mylan's avatar serg@serg.mylan

compare correct types

parent 09b501d6
...@@ -468,7 +468,7 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id) ...@@ -468,7 +468,7 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id)
/* simple SELECT list entry (field without expression) */ /* simple SELECT list entry (field without expression) */
if (trans[i]->type() != Item::FIELD_ITEM) if (trans[i]->type() != Item::FIELD_ITEM)
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
if (((Item_field *)trans[i])->field->type() == Field::NEXT_NUMBER) if (((Item_field *)trans[i])->field->unireg_check == Field::NEXT_NUMBER)
view->contain_auto_increment= 1; view->contain_auto_increment= 1;
/* prepare unique test */ /* prepare unique test */
((Item_field *)trans[i])->field->query_id= other_query_id; ((Item_field *)trans[i])->field->query_id= other_query_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment