mysql-test/r/bdb_notembedded.result
0 → 100644
+35
−0
mysql-test/t/bdb_notembedded.test
0 → 100644
+38
−0
+13
−3
+3
−0
+26
−19
Loading
The change_to_use_tmp_fields function leaves the orig_table member of an expression's tmp table field filled for the new Item_field being created. Later orig_table is used by the Field::make_field function to provide some info about original table and field name to a user. This is ok for a field but for an expression it should be empty. The change_to_use_tmp_fields function now resets orig_table member of an expression's tmp table field to prevent providing a wrong info to a user. The Field::make_field function now resets the table_name and the org_col_name variables when the orig_table is set to 0.