~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.h

  • Committer: Mark Atwood
  • Date: 2011-10-27 05:08:12 UTC
  • mfrom: (2445.1.11 rf)
  • Revision ID: me@mark.atwood.name-20111027050812-1icvs72lb0u4xdc4
mergeĀ lp:~olafvdspek/drizzle/refactor8

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  Keytype type;
40
40
  KEY_CREATE_INFO key_create_info;
41
41
  List<Key_part_spec> columns;
42
 
  lex_string_t name;
 
42
  str_ref name;
43
43
  bool generated;
44
44
 
45
 
  Key(Keytype type_par, lex_string_t name_arg, KEY_CREATE_INFO *key_info_arg, bool generated_arg, List<Key_part_spec> &cols) :
 
45
  Key(Keytype type_par, str_ref name_arg, KEY_CREATE_INFO *key_info_arg, bool generated_arg, List<Key_part_spec> &cols) :
46
46
    type(type_par),
47
47
    key_create_info(*key_info_arg),
48
48
    columns(cols),
50
50
    generated(generated_arg)
51
51
  {}
52
52
 
53
 
  Key(Keytype type_par, const char *name_arg, size_t name_len_arg, KEY_CREATE_INFO *key_info_arg, bool generated_arg, List<Key_part_spec> &cols) :
54
 
    type(type_par),
55
 
    key_create_info(*key_info_arg),
56
 
    columns(cols),
57
 
    generated(generated_arg)
58
 
  {
59
 
    name.assign(name_arg, name_len_arg);
60
 
  }
61
 
 
62
53
  virtual ~Key() {}
63
54
  /* Equality comparison of keys (ignoring name) */
64
55
  friend bool foreign_key_prefix(Key *a, Key *b);