summaryrefslogtreecommitdiff
path: root/sql/item_sum.h
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-12-14 17:49:01 +0200
committermonty@mashka.mysql.fi <>2002-12-14 17:49:01 +0200
commitd783e184369acf2cf40dc40b9d9cbd9db6c5189e (patch)
tree83ced56eeeb8e8fc8c70477eb454d5e43fb8cb56 /sql/item_sum.h
parentab70ad7c1ea73fa1764ddbb1177a796ef38ea654 (diff)
parentd49167bae5cfd3419261e29558bc17d2d36ad94d (diff)
downloadmariadb-git-d783e184369acf2cf40dc40b9d9cbd9db6c5189e.tar.gz
merge
Diffstat (limited to 'sql/item_sum.h')
-rw-r--r--sql/item_sum.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/item_sum.h b/sql/item_sum.h
index b5665c3cf8c..50375fbf77c 100644
--- a/sql/item_sum.h
+++ b/sql/item_sum.h
@@ -210,7 +210,7 @@ public:
longlong val_int() { return (longlong) val(); }
bool is_null() { (void) val_int(); return null_value; }
String *val_str(String*);
- void make_field(Send_field *field);
+ enum_field_types field_type() const { return MYSQL_TYPE_DOUBLE; }
void fix_length_and_dec() {}
};
@@ -247,7 +247,7 @@ public:
longlong val_int() { return (longlong) val(); }
String *val_str(String*);
bool is_null() { (void) val_int(); return null_value; }
- void make_field(Send_field *field);
+ enum_field_types field_type() const { return MYSQL_TYPE_DOUBLE; }
void fix_length_and_dec() {}
};
@@ -318,6 +318,7 @@ class Item_sum_hybrid :public Item_sum
double sum;
longlong sum_int;
Item_result hybrid_type;
+ enum_field_types hybrid_field_type;
int cmp_sign;
table_map used_table_cache;
@@ -344,6 +345,7 @@ class Item_sum_hybrid :public Item_sum
void make_const() { used_table_cache=0; }
bool keep_field_type(void) const { return 1; }
enum Item_result result_type () const { return hybrid_type; }
+ enum enum_field_types field_type() const { return hybrid_field_type; }
void update_field(int offset);
void min_max_update_str_field(int offset);
void min_max_update_real_field(int offset);