Skip to content

Commit 0a681bb

Browse files
author
Sreeharsha Ramanavarapu
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents e7f30dd + ed080d1 commit 0a681bb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

sql/sql_tmp_table.cc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -248,8 +248,7 @@ static Field *create_tmp_field_for_schema(THD *thd, Item *item, TABLE *table)
248248
If modify_item is 0 then fill_record() will update
249249
the temporary table
250250
251-
@retval NULL On error. This also happens if the item is a prepared statement
252-
parameter.
251+
@retval NULL On error.
253252
254253
@retval new_created field
255254
*/
@@ -381,6 +380,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
381380
case Item::REF_ITEM:
382381
case Item::NULL_ITEM:
383382
case Item::VARBIN_ITEM:
383+
case Item::PARAM_ITEM:
384384
if (make_copy_field)
385385
{
386386
DBUG_ASSERT(((Item_result_field*)item)->result_field);
@@ -396,8 +396,6 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
396396
break;
397397
result->set_derivation(item->collation.derivation);
398398
break;
399-
case Item::PARAM_ITEM:
400-
return NULL;
401399
default: // Dosen't have to be stored
402400
DBUG_ASSERT(false);
403401
break;
@@ -962,8 +960,6 @@ create_tmp_table(THD *thd, Temp_table_param *param, List<Item> &fields,
962960

963961
if (!new_field)
964962
{
965-
if (type == Item::PARAM_ITEM)
966-
goto update_hidden;
967963
DBUG_ASSERT(thd->is_fatal_error);
968964
goto err; // Got OOM
969965
}

0 commit comments

Comments
 (0)