Comment 1 for bug 951937

Sergey Petrunia (sergefp) wrote :

The part of where condition attached to to the materialized VIEW seems to be wrong:

  #0 evaluate_join_record (join=0x9f54a28, join_tab=0x9f5cdb8, error=0) at
  #1 0x08372131 in sub_select (join=0x9f54a28, join_tab=0x9f5cdb8, end_of_records=false) at
  #2 0x0836341b in evaluate_join_record (join=0x9f54a28, join_tab=0x9f5cbb0, error=0) at
  #3 0x08372131 in sub_select (join=0x9f54a28, join_tab=0x9f5cbb0, end_of_records=false) at
  #4 0x083733b2 in do_select (join=0x9f54a28, fields=0x9edb54c, table=0x0, procedure=0x0) at
  #5 0x0838c2b7 in JOIN::exec (this=0x9f54a28) at
(gdb) p join_tab->table->alias.Ptr
  $233 = 0x9f3f158 "v"
(gdb) p dbug_print_item(select_cond)
  $234 = 0x8b9f560 "((`j2`.`t1a`.`b` >= `j2`.`t1a`.`a`) or ((`j2`.`t1a`.`a` = 'z') and (`v`.`a` = 'z')))"