summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorholyfoot/hf@hfmain.(none) <>2007-03-22 12:28:21 +0400
committerholyfoot/hf@hfmain.(none) <>2007-03-22 12:28:21 +0400
commit655d2a6bcc6d0f99571b51fd7367b734c19c40a0 (patch)
tree2475f4ff2573fe780ce391f1115b10424ff9f054 /sql/item_timefunc.h
parent2864f7aa24210e9dd653ad13cc4715661c6d389b (diff)
parentda5769fe6a6e3b2e8131cd98d01625d548dcd14d (diff)
downloadmariadb-git-655d2a6bcc6d0f99571b51fd7367b734c19c40a0.tar.gz
Merge mysql.com:/home/hf/work/mrg/mysql-5.0-opt
into mysql.com:/home/hf/work/mrg/mysql-5.1-opt
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);