1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

fix for table/field caching mechanism

save moving ON/USING tables conditions to WHERE clause (BUG#2794)
This commit is contained in:
bell@sanja.is.com.ua
2004-04-01 03:00:38 +03:00
parent ad7e09dec4
commit 5568155e04
5 changed files with 92 additions and 11 deletions

View File

@ -787,6 +787,12 @@ public:
bool charset_is_system_charset, charset_is_collation_connection;
bool slow_command;
/*
Used in prepared statement to prevent using table/field cache in
Item_idend, bacuse it can point on removed table.
*/
bool no_table_fix_fields_cache;
/*
If we do a purge of binary logs, log index info of the threads
that are currently reading it needs to be adjusted. To do that
@ -1044,13 +1050,15 @@ public:
class select_insert :public select_result {
public:
TABLE_LIST *table_list;
TABLE *table;
List<Item> *fields;
ulonglong last_insert_id;
COPY_INFO info;
select_insert(TABLE *table_par,List<Item> *fields_par,enum_duplicates duplic)
:table(table_par),fields(fields_par), last_insert_id(0)
select_insert(TABLE *table_par, List<Item> *fields_par,
enum_duplicates duplic)
:table(table_par), fields(fields_par), last_insert_id(0)
{
bzero((char*) &info,sizeof(info));
info.handle_duplicates=duplic;