From 171f8c014a8bbccc4870d77b5bbb1914a90fd363 Mon Sep 17 00:00:00 2001 From: "Sinisa@sinisa.nasamreza.org" <> Date: Mon, 28 Oct 2002 17:04:18 +0200 Subject: [PATCH] finally pushing what I could not due to BK problems --- Docs/manual.texi | 4 ++++ sql/sql_select.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Docs/manual.texi b/Docs/manual.texi index c39da1e37d1..b78b83828b1 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -50815,6 +50815,10 @@ each individual 4.0.x release. @appendixsubsec Changes in release 4.0.5 @itemize @item +Removed a condition that temp table with index on column that can be NULL has +to be MyISAM. This was OK for 3.23, but not needed in 4.*. This resulted in +slowdown in many queries since 4.0.2 +@item Small code improvement in multi-table updates @item Fixed a newly introduced bug that caused @code{ORDER BY ... LIMIT #} diff --git a/sql/sql_select.cc b/sql/sql_select.cc index fc5fe33288f..2b6a3a70344 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -3708,7 +3708,7 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List &fields, *blob_field= 0; // End marker /* If result table is small; use a heap */ - if (blob_count || using_unique_constraint || group_null_items || + if (blob_count || using_unique_constraint || (select_options & (OPTION_BIG_TABLES | SELECT_SMALL_RESULT)) == OPTION_BIG_TABLES) {