~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.h

  • Committer: Brian Aker
  • Date: 2010-10-21 20:56:58 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: brian@tangent.org-20101021205658-fh6wdhk2049tdua6
We now handle the free of the alias inside of table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
  
166
166
  const char *getAlias() const
167
167
  {
168
 
    return alias;
169
 
  }
170
 
 
171
 
  const char *alias; /**< alias or table name if no alias */
 
168
    return _alias.c_str();
 
169
  }
 
170
 
 
171
  void clearAlias()
 
172
  {
 
173
    _alias.clear();
 
174
  }
 
175
 
 
176
  void setAlias(const char *arg)
 
177
  {
 
178
    _alias= arg;
 
179
  }
 
180
 
 
181
private:
 
182
  std::string _alias; /**< alias or table name if no alias */
 
183
public:
172
184
 
173
185
  unsigned char *null_flags;
174
186