summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-09-24 13:08:47 +0200
committerSergei Golubchik <sergii@pisem.net>2014-09-24 13:08:47 +0200
commit9fa62b47f032bf824738e4150fc29d8e629a7eda (patch)
tree7c3cd508dfb4d7da75f315aa892416d5ca435708
parent06d65521923841999c6a9522af924b08476ef2e9 (diff)
downloadmariadb-git-9fa62b47f032bf824738e4150fc29d8e629a7eda.tar.gz
remove the bug fix for MDEV-6743 "crash in GROUP_CONCAT(IF () ORDER BY 1)"
but keep the test case - it succeeds in 10.0 without the fix
-rw-r--r--sql/item_sum.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 087c1235b76..2dadf8b8835 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -3311,18 +3311,6 @@ void Item_func_group_concat::cleanup()
DBUG_ASSERT(tree == 0);
}
- /*
- For prepared statements we have to restore pointers for ORDER BY as
- they may point to areas that are freed at cleanup().
- */
- if (!current_thd->stmt_arena->is_conventional() && arg_count_order)
- {
- memcpy(args + arg_count_field, orig_args + arg_count_field,
- sizeof(Item*) * arg_count_order);
-
- for (uint i= 0 ; i < arg_count_order ; i++)
- order[i]->item = args + arg_count_field + i;
- }
DBUG_VOID_RETURN;
}