~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/singular.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 14:19:44 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622141944-na0vb0uv30n6u55z
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
  if (getShare()->sizeKeys())
187
187
  {                                             // Get keys for ni_create
188
188
    bool using_unique_constraint= false;
189
 
    HA_KEYSEG *seg= (HA_KEYSEG*) getMemRoot()->alloc_root(sizeof(*seg) * keyinfo->key_parts);
 
189
    HA_KEYSEG *seg= (HA_KEYSEG*) getMemRoot()->alloc(sizeof(*seg) * keyinfo->key_parts);
190
190
 
191
191
    memset(seg, 0, sizeof(*seg) * keyinfo->key_parts);
192
192
    if (keyinfo->key_length >= cursor->getEngine()->max_key_length() ||