Below is the list of changes that have just been committed into a local
5.0 repository of hf. When hf does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2006-12-06 12:39:14+04:00, holyfoot@stripped +1 -0
bug #16546 (DATATIME+0 problems)
sove val_real() implementations became superfluous, so removed
sql/item_timefunc.h@stripped, 2006-12-06 12:39:11+04:00, holyfoot@stripped +0 -9
sove val_real() implementations became superfluous, so removed
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: holyfoot
# Host: deer.(none)
# Root: /home/hf/work/16546/my50-16546
--- 1.72/sql/item_timefunc.h 2006-12-06 12:39:20 +04:00
+++ 1.73/sql/item_timefunc.h 2006-12-06 12:39:20 +04:00
@@ -507,7 +507,6 @@ public:
Item_func_now() :Item_date_func() {}
Item_func_now(Item *a) :Item_date_func(a) {}
enum Item_result result_type () const { return STRING_RESULT; }
- double val_real() { DBUG_ASSERT(fixed == 1); return (double) value; }
longlong val_int() { DBUG_ASSERT(fixed == 1); return value; }
int save_in_field(Field *to, bool no_conversions);
String *val_str(String *str);
@@ -595,11 +594,6 @@ class Item_func_from_unixtime :public It
THD *thd;
public:
Item_func_from_unixtime(Item *a) :Item_date_func(a) {}
- double val_real()
- {
- DBUG_ASSERT(fixed == 1);
- return (double) Item_func_from_unixtime::val_int();
- }
longlong val_int();
String *val_str(String *str);
const char *func_name() const { return "from_unixtime"; }
@@ -638,7 +632,6 @@ class Item_func_convert_tz :public Item_
Item_func_convert_tz(Item *a, Item *b, Item *c):
Item_date_func(a, b, c), from_tz_cached(0), to_tz_cached(0) {}
longlong val_int();
- double val_real() { return (double) val_int(); }
String *val_str(String *str);
const char *func_name() const { return "convert_tz"; }
bool fix_fields(THD *, Item **);
@@ -701,7 +694,6 @@ public:
const char *func_name() const { return "date_add_interval"; }
void fix_length_and_dec();
enum_field_types field_type() const { return cached_field_type; }
- double val_real() { DBUG_ASSERT(fixed == 1); return (double) val_int(); }
longlong val_int();
bool get_date(TIME *res, uint fuzzy_date);
bool eq(const Item *item, bool binary_cmp) const;
@@ -891,7 +883,6 @@ public:
return (new Field_date(maybe_null, name, t_arg, &my_charset_bin));
}
longlong val_int();
- double val_real() { return val_real_from_decimal(); }
my_decimal *val_decimal(my_decimal *decimal_value)
{
DBUG_ASSERT(fixed == 1);
| Thread |
|---|
| • bk commit into 5.0 tree (holyfoot:1.2327) BUG#16546 | holyfoot | 6 Dec |