diff options
author | unknown <bell@sanja.is.com.ua> | 2005-03-30 10:27:36 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-03-30 10:27:36 +0300 |
commit | dddabc7edd10d3b8d42b532354d572b70bba8f18 (patch) | |
tree | 66e27618263c014482bfc63b1ca1ea64e81bb0a5 /sql/sql_select.cc | |
parent | dad034597ed0dc2f34fbd41489cb23fc25ec7341 (diff) | |
parent | dda97623a7455afdf141005f1065f7bdf82fc8ca (diff) | |
download | mariadb-git-dddabc7edd10d3b8d42b532354d572b70bba8f18.tar.gz |
Merge
mysql-test/r/metadata.result:
Auto merged
sql/item.h:
Auto merged
sql/item_func.h:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_union.cc:
Auto merged
mysql-test/r/union.result:
SCCS merged
mysql-test/t/union.test:
SCCS merged
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index c79912e7eae..95a7ba514b7 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -4837,14 +4837,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type, return create_tmp_field_from_item(thd, item, table, copy_func, modify_item, convert_blob_length); case Item::TYPE_HOLDER: - { - Field *example= ((Item_type_holder *)item)->example(); - if (example) - return create_tmp_field_from_field(thd, example, item, table, 0, - convert_blob_length); - return create_tmp_field_from_item(thd, item, table, copy_func, 0, - convert_blob_length); - } + return ((Item_type_holder *)item)->make_field_by_type(table); default: // Dosen't have to be stored return 0; } @@ -5341,8 +5334,6 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, if (create_myisam_tmp_table(table,param,select_options)) goto err; } - /* Set table_name for easier debugging */ - table->table_name= base_name(tmpname); if (!open_tmp_table(table)) DBUG_RETURN(table); @@ -9592,7 +9583,8 @@ int mysql_explain_union(THD *thd, SELECT_LEX_UNIT *unit, select_result *result) unit->fake_select_lex->select_number= UINT_MAX; // jost for initialization unit->fake_select_lex->type= "UNION RESULT"; unit->fake_select_lex->options|= SELECT_DESCRIBE; - if (!(res= unit->prepare(thd, result, SELECT_NO_UNLOCK | SELECT_DESCRIBE))) + if (!(res= unit->prepare(thd, result, SELECT_NO_UNLOCK | SELECT_DESCRIBE, + ""))) res= unit->exec(); res|= unit->cleanup(); } |