summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/table.h b/sql/table.h
index d919b9a4203..e6c9ab4de87 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -734,11 +734,11 @@ public:
class Field_iterator_natural_join: public Field_iterator
{
- List_iterator_fast<Natural_join_column> *column_ref_it;
+ List_iterator_fast<Natural_join_column> column_ref_it;
Natural_join_column *cur_column_ref;
public:
- Field_iterator_natural_join() :column_ref_it(NULL), cur_column_ref(NULL) {}
- ~Field_iterator_natural_join() { delete column_ref_it; }
+ Field_iterator_natural_join() :cur_column_ref(NULL) {}
+ ~Field_iterator_natural_join() {}
void set(TABLE_LIST *table);
void next();
bool end_of_fields() { return !cur_column_ref; }
@@ -785,7 +785,8 @@ public:
GRANT_INFO *grant();
Item *create_item(THD *thd) { return field_it->create_item(thd); }
Field *field() { return field_it->field(); }
- Natural_join_column *get_or_create_column_ref(THD *thd, bool *is_created);
+ Natural_join_column *get_or_create_column_ref(bool *is_created);
+ Natural_join_column *get_natural_column_ref();
};