~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/storage_engine.h

  • Committer: Stewart Smith
  • Author(s): Brian Aker
  • Date: 2009-07-21 05:16:27 UTC
  • mto: (1093.1.29 captain)
  • mto: This revision was merged to the branch mainline in revision 1102.
  • Revision ID: stewart@flamingspork.com-20090721051627-uhgp5av31lehrh9s
Moved file based flag up to engine (from handler). checkLowercaseNames() is now a ember of StorageEngine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
  HTON_BIT_NOT_USER_SELECTABLE,
53
53
  HTON_BIT_TEMPORARY_NOT_SUPPORTED,   // Having temporary tables not supported
54
54
  HTON_BIT_TEMPORARY_ONLY,
 
55
  HTON_BIT_FILE_BASED, // use for check_lowercase_names
55
56
  HTON_BIT_SIZE
56
57
};
57
58
 
64
65
static const std::bitset<HTON_BIT_SIZE> HTON_NOT_USER_SELECTABLE(1 << HTON_BIT_NOT_USER_SELECTABLE);
65
66
static const std::bitset<HTON_BIT_SIZE> HTON_TEMPORARY_NOT_SUPPORTED(1 << HTON_BIT_TEMPORARY_NOT_SUPPORTED);
66
67
static const std::bitset<HTON_BIT_SIZE> HTON_TEMPORARY_ONLY(1 << HTON_BIT_TEMPORARY_ONLY);
 
68
static const std::bitset<HTON_BIT_SIZE> HTON_FILE_BASED(1 << HTON_BIT_FILE_BASED);
67
69
 
68
70
class Table;
69
71
 
282
284
  virtual int deleteTableImpl(Session* session, const std::string table_path);
283
285
 
284
286
public:
285
 
  int createTable(Session *session, const char *table_name, Table *table_arg,
 
287
  int createTable(Session *session, const char *path, Table *table_arg,
286
288
                  HA_CREATE_INFO *create_info,
287
289
                  drizzled::message::Table *proto) {
 
290
    char name_buff[FN_REFLEN];
 
291
    const char *table_name;
 
292
 
 
293
    table_name= checkLowercaseNames(path, name_buff);
 
294
 
288
295
    setTransactionReadWrite(session);
289
296
 
290
297
    return createTableImpl(session, table_name, table_arg, create_info, proto);
301
308
 
302
309
    return deleteTableImpl(session, table_path);
303
310
  }
 
311
 
 
312
  const char *checkLowercaseNames(const char *path, char *tmp_path);
304
313
};
305
314
 
306
315
/* lookups */