From 2aa7ec0d9da32c9fe0ea8bea6e21b9905fbdb487 Mon Sep 17 00:00:00 2001 From: "konstantin@mysql.com" <> Date: Fri, 8 Oct 2004 02:21:19 +0400 Subject: A fix for Bug#5748 "Prepared statement with BETWEEN and bigint values crashes mysqld": implementation for a generic item tree modifications registry. Every item tree modification which should be rolled back for subsequent execution of a prepared statement or stored procedure should be saved in the registry. All such modifications are rolled back at once during cleanup stage of PS. Actual fix for the bug just adds a call to register modifications to convert_constant_item. Post review fixes implemented. --- sql/item.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index ce52705c341..6a22b57ee8e 100644 --- a/sql/item.h +++ b/sql/item.h @@ -317,7 +317,6 @@ class Item_ident :public Item const char *orig_db_name; const char *orig_table_name; const char *orig_field_name; - Item **changed_during_fix_field; public: const char *db_name; const char *table_name; @@ -340,8 +339,6 @@ public: Item_ident(THD *thd, Item_ident *item); const char *full_name() const; void cleanup(); - void register_item_tree_changing(Item **ref) - { changed_during_fix_field= ref; } bool remove_dependence_processor(byte * arg); }; -- cgit v1.2.1