~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.h

Merged up with build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    name.length= name_len_arg;
57
57
  }
58
58
 
59
 
  /**
60
 
   * Construct an (almost) deep copy of this key. Only those
61
 
   * elements that are known to never change are not copied.
62
 
   * If out of memory, a partial copy is returned and an error is set
63
 
   * in Session.
64
 
   */
65
 
  Key(const Key &rhs, MEM_ROOT *mem_root);
66
59
  virtual ~Key() {}
67
60
  /* Equality comparison of keys (ignoring name) */
68
61
  friend bool foreign_key_prefix(Key *a, Key *b);
69
 
  /**
70
 
    Used to make a clone of this object for ALTER/CREATE TABLE
71
 
    @sa comment for Key_part_spec::clone
72
 
  */
73
 
  virtual Key *clone(MEM_ROOT *mem_root) const
74
 
    { return new (mem_root) Key(*this, mem_root); }
75
62
};
76
63
 
77
64