~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/explain_plan.cc

  • Committer: Brian Aker
  • Date: 2010-05-15 01:19:45 UTC
  • Revision ID: brian@gaz-20100515011945-uxhf94vi0tzm0vq6
Rename of KEY to KeyInfo

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include "drizzled/join.h"
30
30
#include "drizzled/internal/m_string.h"
31
31
 
 
32
#include <cstdio>
32
33
#include <string>
33
34
#include <sstream>
34
35
 
253
254
      /* Build "key", "key_len", and "ref" values and add them to item_list */
254
255
      if (tab->ref.key_parts)
255
256
      {
256
 
        KEY *key_info= table->key_info+ tab->ref.key;
 
257
        KeyInfo *key_info= table->key_info+ tab->ref.key;
257
258
        item_list.push_back(new Item_string(key_info->name,
258
259
                                            strlen(key_info->name),
259
260
                                            system_charset_info));
274
275
      }
275
276
      else if (tab->type == AM_NEXT)
276
277
      {
277
 
        KEY *key_info=table->key_info+ tab->index;
 
278
        KeyInfo *key_info=table->key_info+ tab->index;
278
279
        item_list.push_back(new Item_string(key_info->name,
279
280
              strlen(key_info->name),cs));
280
281
        uint32_t length= internal::int64_t2str(key_info->key_length, keylen_str_buf, 10) -