~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

Merge Stewart's basic discovery branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1435
1435
 
1436
1436
    if (table_list->create)
1437
1437
    {
1438
 
      if (ha_table_exists_in_engine(this, table_list->db,
1439
 
                                    table_list->table_name)
1440
 
          != HA_ERR_TABLE_EXIST)
 
1438
      char path[FN_REFLEN];
 
1439
      size_t length;
 
1440
 
 
1441
      length= build_table_filename(path, sizeof(path),
 
1442
                                   table_list->db, table_list->table_name,
 
1443
                                   false);
 
1444
 
 
1445
      if (StorageEngine::getTableProto(path, NULL) != EEXIST)
1441
1446
      {
1442
1447
        /*
1443
1448
          Table to be created, so we need to create placeholder in table-cache.