summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-03-25 22:11:22 +0200
committerunknown <monty@mysql.com>2004-03-25 22:11:22 +0200
commit054d2de499625fac668cff166af605a8106b8eaf (patch)
tree36abf1d40f08cd21cd81f6d5966b89ab4e995ac6 /sql/item.h
parentd78cb8998133d98b595b791379b9d1424c103962 (diff)
downloadmariadb-git-054d2de499625fac668cff166af605a8106b8eaf.tar.gz
Cleanups & safety fixes
include/mysql.h: cleanup of load data infile patch libmysql/libmysql.c: cleanup of load data infile patch myisam/mi_search.c: Added missing assert.h mysql-test/r/func_time.result: Make test more secure mysql-test/t/func_time.test: Make test more secure sql/item.cc: restore to use str_value in item::save_in_field sql/item.h: Simple cleanup sql/item_cmpfunc.cc: Safety fix sql/item_cmpfunc.h: Simple optimization sql/item_func.cc: Updated comment sql/sql_base.cc: Simple optimization sql/sql_select.cc: Simple optimization sql/sql_union.cc: safey fixes
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/item.h b/sql/item.h
index 5f94320b547..dffa93eaac8 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -102,7 +102,11 @@ public:
enum cond_result { COND_UNDEF,COND_OK,COND_TRUE,COND_FALSE };
- String str_value; /* used to store value */
+ /*
+ str_values's main purpose is to be used to cache the value in
+ save_in_field
+ */
+ String str_value;
my_string name; /* Name from select */
Item *next;
uint32 max_length;
@@ -138,7 +142,7 @@ public:
virtual void make_field(Send_field *field);
virtual bool fix_fields(THD *, struct st_table_list *, Item **);
/*
- should be used in case where we are shure that we do not need
+ should be used in case where we are sure that we do not need
complete fix_fields() procedure.
*/
inline void quick_fix_field() { fixed= 1; }
@@ -250,7 +254,7 @@ public:
class Item_num: public Item
{
public:
- virtual Item_num* neg()= 0;
+ virtual Item_num *neg()= 0;
};
@@ -813,6 +817,7 @@ public:
String *val_str(String*);
void make_field(Send_field *field) { item->make_field(field); }
void copy();
+ int save_in_field(Field *field, bool no_conversions);
table_map used_tables() const { return (table_map) 1L; }
bool const_item() const { return 0; }
bool is_null() { return null_value; }