diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-08-24 14:49:04 +0300 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-08-24 14:49:04 +0300 |
commit | 22bcce253e9f964bfec8d72f42ae55ab22e1228f (patch) | |
tree | 4d409fd73ae891c66dbcf263464ce85138312dac /sql/item_timefunc.h | |
parent | fdb3bcc5c7d4f45f7ad98ab7c05b2e33c02b41d9 (diff) | |
download | mariadb-git-22bcce253e9f964bfec8d72f42ae55ab22e1228f.tar.gz |
Adding a necessary functionality to ::store and ::save_in_field
that will take place properly after pull from 4.0, in order to
handle conversions from quoted constants to bigint's.
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r-- | sql/item_timefunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h index 53beb78e1d4..6d016df6eb7 100644 --- a/sql/item_timefunc.h +++ b/sql/item_timefunc.h @@ -228,7 +228,7 @@ public: double val() { return (double) val_int(); } const char *func_name() const { return "date"; } void fix_length_and_dec() { decimals=0; max_length=10; } - bool save_in_field(Field *to); + int save_in_field(Field *to); void make_field(Send_field *tmp_field) { init_make_field(tmp_field,FIELD_TYPE_DATE); @@ -311,7 +311,7 @@ public: enum Item_result result_type () const { return STRING_RESULT; } double val() { return (double) value; } longlong val_int() { return value; } - bool save_in_field(Field *to); + int save_in_field(Field *to); String *val_str(String *str) { str_value.set(buff,buff_length,default_charset_info); return &str_value; } const char *func_name() const { return "now"; } |