diff options
author | unknown <bell@sanja.is.com.ua> | 2003-10-20 18:18:18 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2003-10-20 18:18:18 +0300 |
commit | 8c2d17c777153881d9f185a7cdb0d5b015cdda38 (patch) | |
tree | 550d7b1158ffc65dfbc2493fee4c9e580ffbdffc /sql | |
parent | 5d4ae9871199475813fe81b1e326739d51a90136 (diff) | |
parent | be4e254b132987a41ec034217e9fde2c15cfc0d7 (diff) | |
download | mariadb-git-8c2d17c777153881d9f185a7cdb0d5b015cdda38.tar.gz |
Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1
into sanja.is.com.ua:/home/bell/mysql/bk/work-count-4.1
sql/item.cc:
Auto merged
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item.cc | 12 | ||||
-rw-r--r-- | sql/sql_select.cc | 3 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sql/item.cc b/sql/item.cc index 1792e58bb79..ea1eaf29373 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -274,11 +274,13 @@ Item_field::Item_field(Field *f) :Item_ident(NullS,f->table_name,f->field_name) } // Constructor need to process subselect with temporary tables (see Item) -Item_field::Item_field(THD *thd, Item_field &item): - Item_ident(thd, item), - field(item.field), - result_field(item.result_field) -{ collation.set(DERIVATION_IMPLICIT); } +Item_field::Item_field(THD *thd, Item_field &item) + :Item_ident(thd, item), + field(item.field), + result_field(item.result_field) +{ + collation.set(DERIVATION_IMPLICIT); +} void Item_field::set_field(Field *field_par) { diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 89aae95c951..9bdb989b6a1 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -4866,6 +4866,9 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields, recinfo->type=FIELD_NORMAL; if (!--hidden_field_count) null_count=(null_count+7) & ~7; // move to next byte + + // fix table name in field entry + field->table_name= table->table_name; } param->copy_field_end=copy; |