mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
cleanup
This commit is contained in:
@ -641,7 +641,7 @@ VAR* var_get(const char* var_name, const char** var_name_end, my_bool raw,
|
|||||||
if (*var_name != '$')
|
if (*var_name != '$')
|
||||||
goto err;
|
goto err;
|
||||||
digit = *++var_name - '0';
|
digit = *++var_name - '0';
|
||||||
if (!(digit < 10 && digit >= 0))
|
if (digit < 0 || digit >= 10)
|
||||||
{
|
{
|
||||||
const char* save_var_name = var_name, *end;
|
const char* save_var_name = var_name, *end;
|
||||||
uint length;
|
uint length;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -268,8 +268,8 @@ void Item_bool_func2::fix_length_and_dec()
|
|||||||
int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type)
|
int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type)
|
||||||
{
|
{
|
||||||
owner= item;
|
owner= item;
|
||||||
func= comparator_matrix[type][(owner->functype() == Item_func::EQUAL_FUNC)?
|
func= comparator_matrix[type]
|
||||||
1:0];
|
[test(owner->functype() == Item_func::EQUAL_FUNC)];
|
||||||
if (type == ROW_RESULT)
|
if (type == ROW_RESULT)
|
||||||
{
|
{
|
||||||
uint n= (*a)->cols();
|
uint n= (*a)->cols();
|
||||||
|
@ -868,7 +868,7 @@ JOIN::optimize()
|
|||||||
((group_list && const_tables != tables &&
|
((group_list && const_tables != tables &&
|
||||||
(!simple_group ||
|
(!simple_group ||
|
||||||
!test_if_skip_sort_order(&join_tab[const_tables], group_list,
|
!test_if_skip_sort_order(&join_tab[const_tables], group_list,
|
||||||
HA_POS_ERROR, 0))) || select_distinct) &&
|
unit->select_limit_cnt, 0))) || select_distinct) &&
|
||||||
tmp_table_param.quick_group && !procedure)
|
tmp_table_param.quick_group && !procedure)
|
||||||
{
|
{
|
||||||
need_tmp=1; simple_order=simple_group=0; // Force tmp table without sort
|
need_tmp=1; simple_order=simple_group=0; // Force tmp table without sort
|
||||||
|
Reference in New Issue
Block a user