2780
2781
share->max_rows= ~(ha_rows) 0;
2782
2783
share->max_rows= (ha_rows) (((share->db_type() == heap_engine) ?
2784
2785
session->variables.max_heap_table_size) :
2785
2786
session->variables.tmp_table_size) /
2787
2789
set_if_bigger(share->max_rows,(ha_rows)1); // For dummy start options
2789
2791
Push the LIMIT clause to the temporary table creation, so that we