~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/indexes.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
  add_field("TABLE_SCHEMA");
31
31
  add_field("TABLE_NAME");
32
32
  add_field("INDEX_NAME");
33
 
  add_field("IS_PRIMARY", plugin::TableFunction::BOOLEAN);
 
33
  add_field("IS_USED_IN_PRIMARY", plugin::TableFunction::BOOLEAN);
34
34
  add_field("IS_UNIQUE", plugin::TableFunction::BOOLEAN);
35
35
  add_field("IS_NULLABLE", plugin::TableFunction::BOOLEAN);
36
36
  add_field("KEY_LENGTH", plugin::TableFunction::NUMBER);
101
101
  /* INDEX_NAME */
102
102
  push(index.name());
103
103
 
104
 
  /* IS_PRIMARY */
 
104
  /* IS_USED_IN_PRIMARY */
105
105
  push(index.is_primary());
106
106
 
107
107
  /* IS_UNIQUE */
111
111
  push(index.options().null_part_key());
112
112
 
113
113
  /* KEY_LENGTH */
114
 
  push(index.key_length());
 
114
  push(static_cast<uint64_t>(index.key_length()));
115
115
 
116
116
  /* INDEX_TYPE */
117
117
  {