summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-12-08 17:04:57 +0200
committermonty@donna.mysql.com <>2000-12-08 17:04:57 +0200
commit7617d198a4b6147a2f09b0749ad7ebedb76227b4 (patch)
treeb351c53cc8d10719148a114a60853aa9347782e0 /sql/sql_select.cc
parentc475a9885d88155c2efcf44423c69df76386ac79 (diff)
downloadmariadb-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.cc6
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;