mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
supported possiblity of item substitute (fixed bug) in setup_fields
more efficient reference creation fixed table_name of Field in temporary table mysql-test/r/subselect.result: test of 2 references bugs mysql-test/t/subselect.test: test of 2 references bugs sql/field.h: fixed layout fixed table name of fields of temporary table (derived table) sql/item.cc: more efficient reference creation sql/sql_base.cc: fixed layout supported possiblity of item substitute (fixed bug)
This commit is contained in:
@ -126,10 +126,12 @@ public:
|
||||
Field *tmp= (Field*) memdup_root(root,(char*) this,size_of());
|
||||
if (tmp)
|
||||
{
|
||||
tmp->table=new_table;
|
||||
tmp->key_start=tmp->part_of_key=tmp->part_of_sortkey=0;
|
||||
tmp->table= new_table;
|
||||
tmp->key_start= tmp->part_of_key= tmp->part_of_sortkey= 0;
|
||||
tmp->unireg_check=Field::NONE;
|
||||
tmp->flags&= (NOT_NULL_FLAG | BLOB_FLAG | UNSIGNED_FLAG | ZEROFILL_FLAG | ENUM_FLAG | SET_FLAG);
|
||||
tmp->flags&= (NOT_NULL_FLAG | BLOB_FLAG | UNSIGNED_FLAG |
|
||||
ZEROFILL_FLAG | ENUM_FLAG | SET_FLAG);
|
||||
tmp->table_name= new_table->table_name;
|
||||
tmp->reset_fields();
|
||||
}
|
||||
return tmp;
|
||||
|
Reference in New Issue
Block a user