~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Jay Pipes
  • Date: 2009-03-19 23:18:39 UTC
  • mto: This revision was merged to the branch mainline in revision 957.
  • Revision ID: jpipes@serialcoder-20090319231839-6hje4bgu1vh3esor
Move Key stuff into key.cc and out of session.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
         !strcmp(field_name.str, other.field_name.str);
88
88
}
89
89
 
90
 
/**
91
 
  Construct an (almost) deep copy of this key. Only those
92
 
  elements that are known to never change are not copied.
93
 
  If out of memory, a partial copy is returned and an error is set
94
 
  in Session.
95
 
*/
96
 
Key::Key(const Key &rhs, MEM_ROOT *mem_root)
97
 
  :type(rhs.type),
98
 
  key_create_info(rhs.key_create_info),
99
 
  columns(rhs.columns, mem_root),
100
 
  name(rhs.name),
101
 
  generated(rhs.generated)
102
 
{
103
 
  list_copy_and_replace_each_value(columns, mem_root);
104
 
}
105
 
 
106
90
/****************************************************************************
107
91
** Thread specific functions
108
92
****************************************************************************/