diff options
author | bell@sanja.is.com.ua <> | 2002-11-25 01:38:56 +0200 |
---|---|---|
committer | bell@sanja.is.com.ua <> | 2002-11-25 01:38:56 +0200 |
commit | c74c93ffc3e50e22f549596da338deb8308e5d47 (patch) | |
tree | c57c317394b7b99b42514be7365abdf0866cc4a8 /sql/field.h | |
parent | 1cee49dd86f213c22a774fb6ef89a166b9b30259 (diff) | |
download | mariadb-git-c74c93ffc3e50e22f549596da338deb8308e5d47.tar.gz |
supported possiblity of item substitute (fixed bug) in setup_fields
more efficient reference creation
fixed table_name of Field in temporary table
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/field.h b/sql/field.h index 8c4c48968c4..9fc72cf56ec 100644 --- a/sql/field.h +++ b/sql/field.h @@ -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; |