~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/tables.cc

  • Committer: Brian Aker
  • Date: 2011-04-03 06:02:00 UTC
  • mto: (2263.2.2 drizzle-ga)
  • mto: This revision was merged to the branch mainline in revision 2268.
  • Revision ID: brian@tangent.org-20110403060200-g8v2x1k33rrpx1an
This adds the concept of a definer to a table definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
  add_field("TABLE_UUID", plugin::TableFunction::STRING, 36, true);
60
60
  add_field("TABLE_VERSION", plugin::TableFunction::NUMBER, 0, true);
61
61
  add_field("IS_REPLICATED", plugin::TableFunction::BOOLEAN, 0, false);
 
62
  add_field("TABLE_DEFINER", plugin::TableFunction::STRING, 64, true);
62
63
}
63
64
 
64
65
TablesTool::Generator::Generator(Field **arg) :
192
193
 
193
194
  /* IS_REPLICATED */
194
195
  push(message::is_replicated(getTableMessage()));
 
196
 
 
197
  /* _DEFINER */
 
198
  if (message::has_definer(getTableMessage()))
 
199
  {
 
200
    push(message::definer(getTableMessage()));
 
201
  }
 
202
  else
 
203
  {
 
204
    push();
 
205
  }
195
206
}