~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/index_parts.cc

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  add_field("SEQUENCE_IN_INDEX", plugin::TableFunction::NUMBER);
37
37
  add_field("COMPARE_LENGTH", plugin::TableFunction::NUMBER);
38
38
  add_field("IS_ORDER_REVERSE", plugin::TableFunction::BOOLEAN);
 
39
  add_field("IS_USED_IN_PRIMARY", plugin::TableFunction::BOOLEAN);
 
40
  add_field("IS_UNIQUE", plugin::TableFunction::BOOLEAN);
 
41
  add_field("IS_NULLABLE", plugin::TableFunction::BOOLEAN);
39
42
}
40
43
 
41
44
IndexPartsTool::Generator::Generator(Field **arg) :
121
124
 
122
125
  /* IS_ORDER_REVERSE */
123
126
  push(index_part.in_reverse_order());
 
127
 
 
128
  /* IS_USED_IN_PRIMARY */
 
129
  push(getIndex().is_primary());
 
130
 
 
131
  /* IS_UNIQUE */
 
132
  push(getIndex().is_unique());
 
133
 
 
134
  /* IS_NULLABLE */
 
135
  push(getIndex().options().null_part_key());
124
136
}