~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/schemas.cc

mergeĀ lp:~linuxjedi/drizzle/trunk-remove-drizzleadmin

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
22
 
#include "plugin/schema_dictionary/dictionary.h"
 
21
#include <config.h>
 
22
#include <plugin/schema_dictionary/dictionary.h>
23
23
 
24
24
using namespace std;
25
25
using namespace drizzled;
34
34
  add_field("SCHEMA_UUID", plugin::TableFunction::STRING, 36, true);
35
35
  add_field("SCHEMA_VERSION", plugin::TableFunction::NUMBER, 0, true);
36
36
  add_field("SCHEMA_USE_COUNT", plugin::TableFunction::NUMBER, 0, true);
 
37
  add_field("IS_REPLICATED", plugin::TableFunction::BOOLEAN, 0, false);
 
38
  add_field("SCHEMA_DEFINER", plugin::TableFunction::STRING, 64, true);
37
39
}
38
40
 
39
41
SchemasTool::Generator::Generator(drizzled::Field **arg) :
76
78
 
77
79
    /* SCHEMA_USE_COUNT */
78
80
    push(schema_ptr->version());
 
81
 
 
82
    /* IS_REPLICATED */
 
83
    push(message::is_replicated(*schema_ptr));
 
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
 
79
95
    return true;
80
96
  }
81
97