summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/deer.(none) <>2006-11-01 15:41:51 +0400
committerholyfoot/hf@mysql.com/deer.(none) <>2006-11-01 15:41:51 +0400
commit5f42ec19b760931864e6e7b28a1cff9aff06d1ad (patch)
treed171ff0c22675cb8769a8caeea49028d3ccbef81 /sql/field.cc
parent887e6af60cb5eeea1f5b541821f54141d8c194b6 (diff)
parentd50bdf8fa7cfa0ccb7594710545a71026ec6e4b1 (diff)
downloadmariadb-git-5f42ec19b760931864e6e7b28a1cff9aff06d1ad.tar.gz
Merge mysql.com:/home/hf/work/19491/my50-19491
into mysql.com:/home/hf/work/mysql-5.0.19491
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 9b512fc6d4b..b05398afe75 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -2425,6 +2425,13 @@ int Field_new_decimal::store_decimal(const my_decimal *decimal_value)
}
+int Field_new_decimal::store_time(TIME *ltime, timestamp_type t_type)
+{
+ my_decimal decimal_value;
+ return store_value(date2my_decimal(ltime, &decimal_value));
+}
+
+
double Field_new_decimal::val_real(void)
{
double dbl;