diff options
author | unknown <hf@deer.(none)> | 2005-07-26 12:08:00 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-07-26 12:08:00 +0500 |
commit | b5bec5ee7e9cb86997a03c63ff2b6d36f66dcf4a (patch) | |
tree | 32a5f07cecbe24176d367d0213e0b31a1f9dcc7c /libmysqld | |
parent | f0396c8a576a0fe2e4866197547a1fd5c1e7d4a4 (diff) | |
download | mariadb-git-b5bec5ee7e9cb86997a03c63ff2b6d36f66dcf4a.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.cc | 2 |
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; |