Don't write rows in MyISAM tables when using count(distinct)

Don't read MyISAM header when running without locking
This commit is contained in:
monty@tik.mysql.fi 2001-05-23 02:40:46 +03:00
commit 8685094e15
13 changed files with 87 additions and 39 deletions

View file

@ -867,6 +867,7 @@ bool Item_sum_count_distinct::setup(THD *thd)
0, 0, current_lex->options | thd->options)))
return 1;
table->file->extra(HA_EXTRA_NO_ROWS); // Don't update rows
table->no_rows=1;
if(table->db_type == DB_TYPE_HEAP) // no blobs, otherwise it would be
// MyISAM