summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2003-10-20 13:45:28 +0500
committergluh@gluh.mysql.r18.ru <>2003-10-20 13:45:28 +0500
commit4bed4abb62cbaed50f6977deec9881c0cb0c527c (patch)
tree47e63db5fc732a256e07ddbbe3a8559cf084288c /sql/item.h
parent982e77be631c6f5c89795ede716477456a899c1b (diff)
parent62b0b8b800be5316d73f1642e6cc3f0cf562e171 (diff)
downloadmariadb-git-4bed4abb62cbaed50f6977deec9881c0cb0c527c.tar.gz
Merge commit
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/item.h b/sql/item.h
index 517d3f311e5..c738f92124f 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -113,6 +113,14 @@ public:
my_bool with_sum_func;
my_bool fixed; /* If item fixed with fix_fields */
DTCollation collation;
+
+
+ /*
+ thd is current_thd value. Like some other Item's fields it
+ will be a problem for using one Item in different threads
+ (as stored procedures may want to do in the future)
+ */
+ THD *thd;
// alloc & destruct is done as start of select using sql_alloc
Item();
@@ -124,7 +132,7 @@ public:
top AND/OR ctructure of WHERE clause to protect it of
optimisation changes in prepared statements
*/
- Item(THD *thd, Item &item);
+ Item(THD *c_thd, Item &item);
virtual ~Item() { name=0; } /*lint -e1509 */
void set_name(const char *str,uint length, CHARSET_INFO *cs);
void init_make_field(Send_field *tmp_field,enum enum_field_types type);