From 9bab1c09a6435ce3b301abba3fad462a21103af6 Mon Sep 17 00:00:00 2001 From: "hf@deer.(none)" <> Date: Tue, 26 Jul 2005 12:08:00 +0500 Subject: [PATCH] Fix for bug #9110 (Max_join_size error) --- libmysqld/lib_sql.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 15fe3a03390..82e1c19d758 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -506,6 +506,8 @@ void *create_embedded_thd(int client_flag, char *db) /* TODO - add init_connect command execution */ + if (thd->variables.max_join_size == HA_POS_ERROR) + thd->options |= OPTION_BIG_SELECTS; thd->proc_info=0; // Remove 'login' thd->command=COM_SLEEP; thd->version=refresh_version;