~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Stewart Smith
  • Date: 2009-07-20 02:15:36 UTC
  • mto: (1093.1.29 captain)
  • mto: This revision was merged to the branch mainline in revision 1102.
  • Revision ID: stewart@flamingspork.com-20090720021536-b4nvezac9oo8gdbn
remove ha_table_exists_in_engine and use StorageEngine::getTableProto() instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1638
1638
 
1639
1639
    if (table_list->create)
1640
1640
    {
1641
 
      if (ha_table_exists_in_engine(this, table_list->db,
1642
 
                                    table_list->table_name)
1643
 
          != HA_ERR_TABLE_EXIST)
 
1641
      char path[FN_REFLEN];
 
1642
      size_t length;
 
1643
 
 
1644
      length= build_table_filename(path, sizeof(path),
 
1645
                                   table_list->db, table_list->table_name,
 
1646
                                   false);
 
1647
 
 
1648
      if (StorageEngine::getTableProto(path, NULL) != EEXIST)
1644
1649
      {
1645
1650
        /*
1646
1651
          Table to be created, so we need to create placeholder in table-cache.