summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorhf@deer.mysql.r18.ru <>2003-01-22 20:08:12 +0400
committerhf@deer.mysql.r18.ru <>2003-01-22 20:08:12 +0400
commite2d991795c46bbbc66508ca450b9e33f4147e50b (patch)
treee6c817b6f680cd04d4a4d3cbea3962d434941db7 /sql/item.h
parent87681bb85e7085e17ba137e2147e28cf9dfbae30 (diff)
downloadmariadb-git-e2d991795c46bbbc66508ca450b9e33f4147e50b.tar.gz
SCRUM
DEFAULT in SELECT & UPDATE corrections
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/item.h b/sql/item.h
index 1881b15f6e5..ee68563d5cf 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -33,7 +33,7 @@ public:
enum Type {FIELD_ITEM, FUNC_ITEM, SUM_FUNC_ITEM, STRING_ITEM,
INT_ITEM, REAL_ITEM, NULL_ITEM, VARBIN_ITEM,
- COPY_STR_ITEM, FIELD_AVG_ITEM, DEFAULT_ITEM,
+ COPY_STR_ITEM, FIELD_AVG_ITEM, DEFAULT_VALUE_ITEM,
PROC_ITEM,COND_ITEM, REF_ITEM, FIELD_STD_ITEM,
FIELD_VARIANCE_ITEM, CONST_ITEM,
SUBSELECT_ITEM, ROW_ITEM, CACHE_ITEM};
@@ -663,7 +663,7 @@ public:
Item_field((const char *)NULL, (const char *)NULL, (const char *)NULL), arg(NULL) {}
Item_default_value(Item *a) :
Item_field((const char *)NULL, (const char *)NULL, (const char *)NULL), arg(a) {}
- enum Type type() const { return DEFAULT_ITEM; }
+ enum Type type() const { return DEFAULT_VALUE_ITEM; }
bool eq(const Item *item, bool binary_cmp) const;
bool fix_fields(THD *, struct st_table_list *, Item **);
bool check_loop(uint id)
@@ -682,12 +682,7 @@ public:
}
return Item_field::save_in_field(field, no_conversions);
}
- table_map used_tables() const
- {
- if (!arg)
- return (table_map) 0L;
- return Item_field::used_tables();
- }
+ table_map used_tables() const { return (table_map)0L; }
};
class Item_cache: public Item