Commit 97eddaaf authored by unknown's avatar unknown

Merge bk-internal.mysql.com:/home/bk/mysql-4.1

into mysql.com:/home/my/mysql-4.1


sql/item.cc:
  Auto merged
parents 19e4b52a 70454de2
...@@ -92,6 +92,7 @@ class Field ...@@ -92,6 +92,7 @@ class Field
utype unireg_check_arg, const char *field_name_arg, utype unireg_check_arg, const char *field_name_arg,
struct st_table *table_arg); struct st_table *table_arg);
virtual ~Field() {} virtual ~Field() {}
/* Store functions returns 1 on overflow and -1 on fatal error */
virtual int store(const char *to,uint length,CHARSET_INFO *cs)=0; virtual int store(const char *to,uint length,CHARSET_INFO *cs)=0;
virtual int store(double nr)=0; virtual int store(double nr)=0;
virtual int store(longlong nr)=0; virtual int store(longlong nr)=0;
......
...@@ -678,9 +678,7 @@ void Item_param::set_longdata(const char *str, ulong length) ...@@ -678,9 +678,7 @@ void Item_param::set_longdata(const char *str, ulong length)
int Item_param::save_in_field(Field *field, bool no_conversions) int Item_param::save_in_field(Field *field, bool no_conversions)
{ {
THD *thd= current_thd; DBUG_ASSERT(current_thd->command == COM_EXECUTE);
DBUG_ASSERT(thd->command == COM_EXECUTE);
if (null_value) if (null_value)
return (int) set_field_to_null(field); return (int) set_field_to_null(field);
......
...@@ -146,6 +146,7 @@ class Item { ...@@ -146,6 +146,7 @@ class Item {
complete fix_fields() procedure. complete fix_fields() procedure.
*/ */
inline void quick_fix_field() { fixed= 1; } inline void quick_fix_field() { fixed= 1; }
/* Function returns 1 on overflow and -1 on fatal errors */
virtual int save_in_field(Field *field, bool no_conversions); virtual int save_in_field(Field *field, bool no_conversions);
virtual void save_org_in_field(Field *field) virtual void save_org_in_field(Field *field)
{ (void) save_in_field(field, 1); } { (void) save_in_field(field, 1); }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment