diff options
author | monty@donna.mysql.com <> | 2000-12-08 17:04:57 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-12-08 17:04:57 +0200 |
commit | 7617d198a4b6147a2f09b0749ad7ebedb76227b4 (patch) | |
tree | b351c53cc8d10719148a114a60853aa9347782e0 /sql/sql_select.cc | |
parent | c475a9885d88155c2efcf44423c69df76386ac79 (diff) | |
download | mariadb-git-7617d198a4b6147a2f09b0749ad7ebedb76227b4.tar.gz |
Lots of fixes for BDB tables
Change DROP TABLE to first drop the data, then the .frm file
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 31fc3f28099..1359551fcf1 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -863,7 +863,8 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds, else s->dependent=(table_map) 0; s->key_dependent=(table_map) 0; - if ((table->system || table->file->records <= 1L) && ! s->dependent) + if ((table->system || table->file->records <= 1) && ! s->dependent && + !(table->file->option_flag() & HA_NOT_EXACT_COUNT)) { s->type=JT_SYSTEM; const_table_map|=table->map; @@ -924,7 +925,8 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds, { if (s->dependent & ~(const_table_map)) // All dep. must be constants continue; - if (s->table->file->records <= 1L) + if (s->table->file->records <= 1L && + !(s->table->file->option_flag() & HA_NOT_EXACT_COUNT)) { // system table s->type=JT_SYSTEM; const_table_map|=s->table->map; |