summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorunknown <holyfoot/hf@hfmain.(none)>2007-03-22 12:28:21 +0400
committerunknown <holyfoot/hf@hfmain.(none)>2007-03-22 12:28:21 +0400
commit475384c9d561b78b746fd345e2b294c80fdfa6e5 (patch)
tree2475f4ff2573fe780ce391f1115b10424ff9f054 /sql/item_timefunc.h
parentf4a8badeed8e9a90ba6aec7a888f017035bebf72 (diff)
parent23354862f03692361ffad39b86faef07df9fd74c (diff)
downloadmariadb-git-475384c9d561b78b746fd345e2b294c80fdfa6e5.tar.gz
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt mysql-test/r/type_datetime.result: Auto merged mysql-test/t/type_datetime.test: Auto merged sql/item_timefunc.h: merging
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index 3a59abf1bda..ac68788959c 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -856,8 +856,14 @@ public:
{
return tmp_table_field_from_field_type(table, 0);
}
+ void fix_length_and_dec()
+ {
+ Item_typecast_maybe_null::fix_length_and_dec();
+ decimals= DATETIME_DEC;
+ }
bool result_as_longlong() { return TRUE; }
longlong val_int();
+ double val() { return (double) val_int(); }
my_decimal *val_decimal(my_decimal *decimal_value)
{
DBUG_ASSERT(fixed == 1);