summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2005-07-26 12:08:00 +0500
committerunknown <hf@deer.(none)>2005-07-26 12:08:00 +0500
commit19117503544af34ad492286351ded5f60cbf5854 (patch)
tree32a5f07cecbe24176d367d0213e0b31a1f9dcc7c /libmysqld
parentb08c3ca42611465041f9a401884352a84f7996b0 (diff)
downloadmariadb-git-19117503544af34ad492286351ded5f60cbf5854.tar.gz
Fix for bug #9110 (Max_join_size error)
libmysqld/lib_sql.cc: This should be done during the thread activation
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 2 insertions, 0 deletions
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;