mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
5.5-merge
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2000-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc.
|
||||
/* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -1429,7 +1429,7 @@ int QUICK_RANGE_SELECT::init_ror_merged_scan(bool reuse_handler)
|
||||
}
|
||||
|
||||
thd= head->in_use;
|
||||
if (!(file= head->file->clone(thd->mem_root)))
|
||||
if (!(file= head->file->clone(head->s->normalized_path.str, thd->mem_root)))
|
||||
{
|
||||
/*
|
||||
Manually set the error flag. Note: there seems to be quite a few
|
||||
@@ -5813,6 +5813,7 @@ get_mm_leaf(RANGE_OPT_PARAM *param, COND *conf_func, Field *field,
|
||||
|
||||
*/
|
||||
if (field->result_type() == STRING_RESULT &&
|
||||
((Field_str*) field)->match_collation_to_optimize_range() &&
|
||||
value->result_type() == STRING_RESULT &&
|
||||
key_part->image_type == Field::itRAW &&
|
||||
((Field_str*)field)->charset() != conf_func->compare_collation() &&
|
||||
@@ -8149,7 +8150,7 @@ int QUICK_INDEX_MERGE_SELECT::read_keys_and_merge()
|
||||
|
||||
if (unique == NULL)
|
||||
{
|
||||
DBUG_EXECUTE_IF("index_merge_may_not_create_a_Unique", abort(); );
|
||||
DBUG_EXECUTE_IF("index_merge_may_not_create_a_Unique", DBUG_ABORT(); );
|
||||
DBUG_EXECUTE_IF("only_one_Unique_may_be_created",
|
||||
DBUG_SET("+d,index_merge_may_not_create_a_Unique"); );
|
||||
|
||||
@@ -11223,7 +11224,7 @@ void QUICK_GROUP_MIN_MAX_SELECT::update_min_result()
|
||||
|
||||
min_functions_it->rewind();
|
||||
while ((min_func= (*min_functions_it)++))
|
||||
min_func->reset();
|
||||
min_func->reset_and_add();
|
||||
}
|
||||
|
||||
|
||||
@@ -11255,7 +11256,7 @@ void QUICK_GROUP_MIN_MAX_SELECT::update_max_result()
|
||||
|
||||
max_functions_it->rewind();
|
||||
while ((max_func= (*max_functions_it)++))
|
||||
max_func->reset();
|
||||
max_func->reset_and_add();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user