mirror of
https://github.com/MariaDB/server.git
synced 2026-05-03 13:45:34 +02:00
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:
parent
a3be64bfa5
commit
8685094e15
13 changed files with 87 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue