~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Stewart Smith
  • Date: 2009-06-25 05:49:42 UTC
  • mto: (1089.11.1 basic-discovery)
  • mto: This revision was merged to the branch mainline in revision 1102.
  • Revision ID: stewart@flamingspork.com-20090625054942-xr1p83d2q1i1q0fo
start passing down table proto to createTable. This enables future code cleanup, including fixing ARCHIVE embedding table definition and table proto in parser

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/definitions.h>
25
25
#include <drizzled/sql_plugin.h>
26
26
#include <drizzled/handler_structs.h>
 
27
#include <drizzled/message/table.pb.h>
27
28
 
28
29
#include <bitset>
29
30
#include <string>
263
264
protected:
264
265
  virtual int createTableImpl(Session *session, const char *table_name,
265
266
                              Table *table_arg,
266
 
                              HA_CREATE_INFO *create_info)= 0;
 
267
                              HA_CREATE_INFO *create_info,
 
268
                              drizzled::message::Table* proto)= 0;
267
269
 
268
270
  virtual int renameTableImpl(Session* session, const char *from, const char *to);
269
271
 
271
273
 
272
274
public:
273
275
  int createTable(Session *session, const char *table_name, Table *table_arg,
274
 
                  HA_CREATE_INFO *create_info) {
 
276
                  HA_CREATE_INFO *create_info,
 
277
                  drizzled::message::Table *proto) {
275
278
    setTransactionReadWrite(session);
276
279
 
277
 
    return createTableImpl(session, table_name, table_arg, create_info);
 
280
    return createTableImpl(session, table_name, table_arg, create_info, proto);
278
281
  }
279
282
 
280
283
  int renameTable(Session *session, const char *from, const char *to) {