mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/psergey/mysql-5.0-bug12082
This commit is contained in:
@ -9745,7 +9745,13 @@ join_read_const_table(JOIN_TAB *tab, POSITION *pos)
|
|||||||
table->file->extra(HA_EXTRA_KEYREAD);
|
table->file->extra(HA_EXTRA_KEYREAD);
|
||||||
tab->index= tab->ref.key;
|
tab->index= tab->ref.key;
|
||||||
}
|
}
|
||||||
if ((error=join_read_const(tab)))
|
error=join_read_const(tab);
|
||||||
|
if (table->key_read)
|
||||||
|
{
|
||||||
|
table->key_read=0;
|
||||||
|
table->file->extra(HA_EXTRA_NO_KEYREAD);
|
||||||
|
}
|
||||||
|
if (error)
|
||||||
{
|
{
|
||||||
tab->info="unique row not found";
|
tab->info="unique row not found";
|
||||||
/* Mark for EXPLAIN that the row was not found */
|
/* Mark for EXPLAIN that the row was not found */
|
||||||
@ -9753,11 +9759,6 @@ join_read_const_table(JOIN_TAB *tab, POSITION *pos)
|
|||||||
if (!table->maybe_null || error > 0)
|
if (!table->maybe_null || error > 0)
|
||||||
DBUG_RETURN(error);
|
DBUG_RETURN(error);
|
||||||
}
|
}
|
||||||
if (table->key_read)
|
|
||||||
{
|
|
||||||
table->key_read=0;
|
|
||||||
table->file->extra(HA_EXTRA_NO_KEYREAD);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (*tab->on_expr_ref && !table->null_row)
|
if (*tab->on_expr_ref && !table->null_row)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user