diff options
author | unknown <bell@sanja.is.com.ua> | 2003-08-12 15:04:49 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-08-12 15:04:49 +0300 |
commit | 45b145a96e9a5992b8a5c8a0a1a23d99951058ca (patch) | |
tree | 9b6eb05bbb347e1704e9fe0036f80dc793830074 /sql/item_sum.cc | |
parent | 253b2a9654f6430d879076771b70bd018dd30732 (diff) | |
download | mariadb-git-45b145a96e9a5992b8a5c8a0a1a23d99951058ca.tar.gz |
fixed problem with reference on derived table fields (BUG#1031)
mysql-test/r/derived.result:
test of BUG#1031
mysql-test/t/derived.test:
test of BUG#1031
sql/item_sum.cc:
'alias' parameter added to create_tmp_table
sql/sql_derived.cc:
Derived table should be named (to pass it name to Field and then to Item_field)
sql/sql_select.cc:
'alias' parameter added to create_tmp_table
sql/sql_select.h:
'alias' parameter added to create_tmp_table
sql/sql_union.cc:
'alias' parameter added to create_tmp_table
sql/sql_update.cc:
'alias' parameter added to create_tmp_table
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 0da2725f3ab..71c4fe9f4b8 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -1147,7 +1147,7 @@ bool Item_sum_count_distinct::setup(THD *thd) if (!(table= create_tmp_table(thd, tmp_table_param, list, (ORDER*) 0, 1, 0, select_lex->options | thd->options, - HA_POS_ERROR))) + HA_POS_ERROR, (char*)""))) return 1; table->file->extra(HA_EXTRA_NO_ROWS); // Don't update rows table->no_rows=1; @@ -1834,7 +1834,8 @@ bool Item_func_group_concat::setup(THD *thd) (types, sizes and so on). */ if (!(table=create_tmp_table(thd, tmp_table_param, all_fields, 0, - 0, 0, 0,select_lex->options | thd->options))) + 0, 0, 0,select_lex->options | thd->options, + (char *) ""))) DBUG_RETURN(1); table->file->extra(HA_EXTRA_NO_ROWS); table->no_rows= 1; |