From acb1710d621950b5146c6464d0b4c5066483e9b6 Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Thu, 13 Jun 2002 17:08:27 +0300 Subject: [PATCH] Some small changes in multi-table update "ported" from mulit-table delete. --- sql/sql_update.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/sql_update.cc b/sql/sql_update.cc index b4216adc2cd..91e464c376e 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -521,10 +521,10 @@ multi_update::initialize_tables(JOIN *join) if (tab->table->map & tables_to_update_from) { We are going to update from this table - walk->table=tab->table; - walk=walk->next; - if (tab == join->join_tab) - tab->table->no_keyread=1; + TABLE *tbl=walk->table=tab->table; + Don't use KEYREAD optimization on this table + tbl->no_keyread=1; + walk=walk->next; } } */