mirror of
https://github.com/MariaDB/server.git
synced 2026-05-05 06:35:33 +02:00
Automatic primary key for BDB tables
sql/field.h: Cleanup sql/filesort.cc: Cleanup sql/opt_range.cc: Remove index in use sql/sql_base.cc: Allow Berkeley DB tables used only the index when the query only uses the index + data from the primary key sql/sql_select.cc: Fix for left join optimization BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
parent
d78f984097
commit
9c019f4e4f
12 changed files with 349 additions and 143 deletions
|
|
@ -2352,6 +2352,11 @@ make_join_readinfo(JOIN *join,uint options)
|
|||
break;
|
||||
case JT_EQ_REF:
|
||||
table->status=STATUS_NO_RECORD;
|
||||
if (tab->select)
|
||||
{
|
||||
delete tab->select->quick;
|
||||
tab->select->quick=0;
|
||||
}
|
||||
delete tab->quick;
|
||||
tab->quick=0;
|
||||
table->file->index_init(tab->ref.key);
|
||||
|
|
@ -2365,6 +2370,11 @@ make_join_readinfo(JOIN *join,uint options)
|
|||
break;
|
||||
case JT_REF:
|
||||
table->status=STATUS_NO_RECORD;
|
||||
if (tab->select)
|
||||
{
|
||||
delete tab->select->quick;
|
||||
tab->select->quick=0;
|
||||
}
|
||||
delete tab->quick;
|
||||
tab->quick=0;
|
||||
table->file->index_init(tab->ref.key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue