|
seems to be the same bug. fails with Innodb/MyIsam:
CREATE TABLE t1 (i1 int, id int, c1 int, b1 bit(34), a1 binary(99), d1 int,
|
key (d1,b1,a1(64),c1),
|
key (i1,c1,id,b1,d1));
|
|
insert into t1 values (0,null,null,'\0\0\0\0',null,0),(0,null,null,'\0\0\0\0',null,0);
|
|
select distinct c1 from t1 where b1 between 1 and 5 order by d1;
|
#5 0x00007f03604de535 in __GI_abort () at abort.c:79
|
#6 0x00007f03604de40f in __assert_fail_base (fmt=0x7f0360640ee0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x555b60ee66b0 "table->no_keyread || !table->covering_keys.is_set(tab->index) || table->file->keyread == tab->index", file=0x555b60ee3e78 "/10.5/sql/sql_select.cc", line=21604, function=<optimized out>) at assert.c:92
|
#7 0x00007f03604ec102 in __GI___assert_fail (assertion=0x555b60ee66b0 "table->no_keyread || !table->covering_keys.is_set(tab->index) || table->file->keyread == tab->index", file=0x555b60ee3e78 "/10.5/sql/sql_select.cc", line=21604, function=0x555b60eea070 <join_read_first(st_join_table*)::__PRETTY_FUNCTION__> "int join_read_first(JOIN_TAB*)") at assert.c:101
|
#8 0x0000555b601cde59 in join_read_first (tab=0x7f03400168c8) at /10.5/sql/sql_select.cc:21602
|
#9 0x0000555b601cb65f in sub_select (join=0x7f0340015430, join_tab=0x7f03400168c8, end_of_records=false) at /10.5/sql/sql_select.cc:20600
|
#10 0x0000555b601cab20 in do_select (join=0x7f0340015430, procedure=0x0) at /10.5/sql/sql_select.cc:20137
|
#11 0x0000555b6019ef17 in JOIN::exec_inner (this=0x7f0340015430) at /10.5/sql/sql_select.cc:4463
|
#12 0x0000555b6019e043 in JOIN::exec (this=0x7f0340015430) at /10.5/sql/sql_select.cc:4244
|
#13 0x0000555b6019f764 in mysql_select (thd=0x7f0340000d78, tables=0x7f0340014240, fields=..., conds=0x0, og_num=1, order=0x7f0340015298, group=0x0, having=0x0, proc_param=0x0, select_options=2147748609, result=0x7f0340015408, unit=0x7f0340004d80, select_lex=0x7f0340013c40) at /10.5/sql/sql_select.cc:4668
|
#14 0x0000555b6018f42a in handle_select (thd=0x7f0340000d78, lex=0x7f0340004cb8, result=0x7f0340015408, setup_tables_done_option=0) at /10.5/sql/sql_select.cc:417
|
#15 0x0000555b60154c83 in execute_sqlcom_select (thd=0x7f0340000d78, all_tables=0x7f0340014240) at /10.5/sql/sql_parse.cc:6168
|
#16 0x0000555b6014b7c2 in mysql_execute_command (thd=0x7f0340000d78) at /10.5/sql/sql_parse.cc:3901
|
#17 0x0000555b60159bb2 in mysql_parse (thd=0x7f0340000d78, rawbuf=0x7f0340013b90 "select distinct c1 from t1 order by d1", length=38, parser_state=0x7f0356e7d510, is_com_multi=false, is_next_command=false) at /10.5/sql/sql_parse.cc:7953
|
#18 0x0000555b60145546 in dispatch_command (command=COM_QUERY, thd=0x7f0340000d78, packet=0x7f0340008d09 "", packet_length=38, is_com_multi=false, is_next_command=false) at /10.5/sql/sql_parse.cc:1839
|
#19 0x0000555b60143c84 in do_command (thd=0x7f0340000d78) at /10.5/sql/sql_parse.cc:1358
|
#20 0x0000555b602e54f2 in do_handle_one_connection (connect=0x555b63b2d778, put_in_cache=true) at /10.5/sql/sql_connect.cc:1422
|
#21 0x0000555b602e5222 in handle_one_connection (arg=0x555b63a4cc18) at /10.5/sql/sql_connect.cc:1319
|
#22 0x0000555b60814181 in pfs_spawn_thread (arg=0x555b63b2d3b8) at /10.5/storage/perfschema/pfs.cc:2201
|
#23 0x00007f0360f84fa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
|
#24 0x00007f03605b54cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|