diff options
author | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-10-25 20:14:39 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/deer.(none)> | 2006-10-25 20:14:39 +0500 |
commit | 01a0be193d8344e1b20c366b30a7ca75a0a9bd44 (patch) | |
tree | 248f0c5b988b23156208cb6f1d2014539218eb9d /sql/item.h | |
parent | 3f4964394c0f3bb75a4c02549b70b728aa1ddd90 (diff) | |
download | mariadb-git-01a0be193d8344e1b20c366b30a7ca75a0a9bd44.tar.gz |
bug #19491 (CAST do DATETIME wrong result)
mysql-test/r/type_datetime.result:
result fixed
mysql-test/r/type_newdecimal.result:
result fixed
mysql-test/t/type_datetime.test:
testcase
mysql-test/t/type_newdecimal.test:
testcase
sql/field.cc:
Field_new_decimal::store_time implemented
sql/field.h:
Field_new_decimal::store_time added
sql/item.cc:
auxiliary methods implemented to operate with datatimes
sql/item.h:
auxiliary methods declared in Item to operate with datatimes
sql/item_timefunc.cc:
Item_date::save_in_field old implementation removed
sql/item_timefunc.h:
my_decimal and save_in_field methods implemented for datetime items
sql/my_decimal.cc:
date2my_decimal implemented
sql/my_decimal.h:
date2my_decimal declared
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h index e3df0fdf389..a820f78719a 100644 --- a/sql/item.h +++ b/sql/item.h @@ -605,9 +605,14 @@ public: my_decimal *val_decimal_from_real(my_decimal *decimal_value); my_decimal *val_decimal_from_int(my_decimal *decimal_value); my_decimal *val_decimal_from_string(my_decimal *decimal_value); + my_decimal *val_decimal_from_date(my_decimal *decimal_value); + my_decimal *val_decimal_from_time(my_decimal *decimal_value); longlong val_int_from_decimal(); double val_real_from_decimal(); + int save_time_in_field(Field *field); + int save_date_in_field(Field *field); + virtual Field *get_tmp_table_field() { return 0; } /* This is also used to create fields in CREATE ... SELECT: */ virtual Field *tmp_table_field(TABLE *t_arg) { return 0; } |