Problem occurs on test table, which consists of two indexed comlumns and primary key column. With following query:
Same query while running after:
I attach my test database, which is derived from production database where issue occurs. I was able to reproduce problem on several other systems.
I was unable to reproduce same error on MySQL 5.5.35
Issue might be related to "intersect(col1,col2);" in query EXPLAIN, while any modification of query (eg. adding OR condition to WHERE expression) seems to avoid the issue. Deleting primary key (which is not involved in query), changing table to MyISAM seems to cause correct behavior of system.