~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/schemas.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  add_field("SCHEMA_VERSION", plugin::TableFunction::NUMBER, 0, true);
36
36
  add_field("SCHEMA_USE_COUNT", plugin::TableFunction::NUMBER, 0, true);
37
37
  add_field("IS_REPLICATED", plugin::TableFunction::BOOLEAN, 0, false);
 
38
  add_field("SCHEMA_DEFINER", plugin::TableFunction::STRING, 64, true);
38
39
}
39
40
 
40
41
SchemasTool::Generator::Generator(drizzled::Field **arg) :
81
82
    /* IS_REPLICATED */
82
83
    push(message::is_replicated(*schema_ptr));
83
84
 
 
85
    /* _DEFINER */
 
86
    if (message::has_definer(*schema_ptr))
 
87
    {
 
88
      push(message::definer(*schema_ptr));
 
89
    }
 
90
    else
 
91
    {
 
92
      push();
 
93
    }
 
94
 
84
95
    return true;
85
96
  }
86
97