summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-02-17 15:07:01 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2003-02-17 15:07:01 +0400
commit00addf22bf01f4529506b043fd15c075f5c98349 (patch)
tree9e22423bcb3742b86a18b513ab6af5435fa4ac88
parentb3982368a8607db812ac548a6f29a4762f05cd06 (diff)
parent679fe2ee5785978bac36666438795dfcf8e6e839 (diff)
downloadmariadb-git-00addf22bf01f4529506b043fd15c075f5c98349.tar.gz
Merge gluh@192.168.21.1:/usr/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/mysql-4.1.uvar sql/filesort.cc: Auto merged sql/item_cmpfunc.cc: Auto merged sql/item_func.cc: Auto merged sql/item_sum.cc: Auto merged sql/log_event.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_select.cc: Auto merged
-rw-r--r--sql/filesort.cc4
-rw-r--r--sql/item_cmpfunc.cc8
-rw-r--r--sql/item_func.cc16
-rw-r--r--sql/item_sum.cc8
-rw-r--r--sql/log_event.cc8
-rw-r--r--sql/sql_lex.cc2
-rw-r--r--sql/sql_select.cc4
7 files changed, 28 insertions, 22 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc
index fcee26278d1..6ff3e09b7ea 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -561,7 +561,7 @@ static void make_sortkey(register SORTPARAM *param,
change_double_for_sort(value,(byte*) to);
break;
}
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -971,7 +971,7 @@ sortlength(SORT_FIELD *sortorder, uint s_length, bool *multi_byte_charset)
case REAL_RESULT:
sortorder->length=sizeof(double);
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc
index 8804bb56f6b..e2b87da612a 100644
--- a/sql/item_cmpfunc.cc
+++ b/sql/item_cmpfunc.cc
@@ -840,7 +840,7 @@ Item *Item_func_case::find_item(String *str)
if (args[i]->val()==first_expr_real && !args[i]->null_value)
return args[i+1];
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -1224,6 +1224,9 @@ cmp_item* cmp_item::get_comparator(Item *item)
case ROW_RESULT:
return new cmp_item_row;
break;
+ default:
+ DBUG_ASSERT(0);
+ break;
}
return 0; // to satisfy compiler :)
}
@@ -1366,6 +1369,9 @@ void Item_func_in::fix_length_and_dec()
case ROW_RESULT:
array= new in_row(arg_count, item);
break;
+ default:
+ DBUG_ASSERT(0);
+ return;
}
uint j=0;
for (uint i=0 ; i < arg_count ; i++)
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 45d666fb47b..41082805aa8 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -251,7 +251,7 @@ Field *Item_func::tmp_table_field(TABLE *t_arg)
else
res= new Field_string(max_length, maybe_null, name, t_arg, charset());
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -910,7 +910,7 @@ String *Item_func_min_max::val_str(String *str)
}
return res;
}
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
@@ -1466,7 +1466,7 @@ bool udf_handler::get_arguments()
to+= ALIGN_SIZE(sizeof(double));
}
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
;
@@ -1926,7 +1926,7 @@ longlong Item_func_benchmark::val_int()
case STRING_RESULT:
(void) args[0]->val_str(&tmp);
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
@@ -2062,7 +2062,7 @@ Item_func_set_user_var::update()
(void) val_str(&tmp);
break;
}
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -2143,7 +2143,7 @@ Item_func_get_user_var::val_str(String *str)
return NULL;
}
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -2164,7 +2164,7 @@ double Item_func_get_user_var::val()
return (double) *(longlong*) entry->value;
case STRING_RESULT:
return atof(entry->value); // This is null terminated
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
@@ -2185,7 +2185,7 @@ longlong Item_func_get_user_var::val_int()
return *(longlong*) entry->value;
case STRING_RESULT:
return strtoull(entry->value,NULL,10); // String is null terminated
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index c2db50345d1..fc59569e25b 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -387,7 +387,7 @@ double Item_sum_hybrid::val()
return (double) sum_int;
case REAL_RESULT:
return sum;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
@@ -422,7 +422,7 @@ Item_sum_hybrid::val_str(String *str)
else
str->set((longlong) sum_int,thd_charset());
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -467,7 +467,7 @@ bool Item_sum_min::add()
}
}
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
@@ -513,7 +513,7 @@ bool Item_sum_max::add()
}
}
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 6bd187ab8af..01fe360b68f 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -2004,7 +2004,7 @@ void User_var_log_event::pack_info(Protocol* protocol)
memcpy(buf + val_offset + 1, val, val_len);
buf[val_offset + val_len + 1]= '\'';
break;
- case ROW_RESULT:
+ default:
DBUG_ASSERT(1);
return;
}
@@ -2069,7 +2069,7 @@ int User_var_log_event::write_data(IO_CACHE* file)
case STRING_RESULT:
pos= val;
break;
- case ROW_RESULT:
+ default:
DBUG_ASSERT(1);
return 0;
}
@@ -2121,7 +2121,7 @@ void User_var_log_event::print(FILE* file, bool short_form, char* last_db)
case STRING_RESULT:
fprintf(file, ":='%s';\n", val);
break;
- case ROW_RESULT:
+ default:
DBUG_ASSERT(1);
return;
}
@@ -2165,7 +2165,7 @@ int User_var_log_event::exec_event(struct st_relay_log_info* rli)
case STRING_RESULT:
it= new Item_string(val, val_len, charset);
break;
- case ROW_RESULT:
+ default:
DBUG_ASSERT(1);
return 0;
}
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 779a109367c..df34d56b0c2 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -207,7 +207,7 @@ static int find_keyword(LEX *lex, uint len, bool function)
return (udf->type == UDFTYPE_FUNCTION) ? UDF_FLOAT_FUNC : UDA_FLOAT_SUM;
case INT_RESULT:
return (udf->type == UDFTYPE_FUNCTION) ? UDF_INT_FUNC : UDA_INT_SUM;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 4543c6bc5d0..d3f41265e78 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -4007,7 +4007,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
item->name,table,item->charset());
return new Field_string(item_sum->max_length,maybe_null,
item->name,table,item->charset());
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
return 0;
@@ -4067,7 +4067,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
new_field= new Field_string(item->max_length,maybe_null,
item->name,table,item->str_value.charset());
break;
- case ROW_RESULT:
+ default:
// This case should never be choosen
DBUG_ASSERT(0);
break;