~posulliv/drizzle/schema-less

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.cc

  • Committer: Brian Aker
  • Date: 2010-03-02 07:03:12 UTC
  • mfrom: (1309.2.10 drizzle-build)
  • Revision ID: brian@gaz-20100302070312-u8xyk09u2970pgzp
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "drizzled/charset_info.h"
29
29
#include "drizzled/cursor.h"
30
30
 
 
31
#include "drizzled/internal/my_sys.h"
 
32
 
31
33
#include <fcntl.h>
32
34
#include <sys/stat.h>
33
35
#include <sys/types.h>
138
140
      pair<SchemaCache::iterator, bool> ret=
139
141
        schema_cache.insert(make_pair(schema_message.name(), schema_message));
140
142
 
141
 
      cerr << "Caching " << schema_message.name() << "\n";
142
 
 
143
143
      if (ret.second == false)
144
144
      {
145
145
        abort(); // If this has happened, something really bad is going down.
270
270
  return true;
271
271
}
272
272
 
 
273
int Schema::doDropTable(Session&, const string &table_path)
 
274
{
 
275
  string path(table_path);
 
276
 
 
277
  path.append(DEFAULT_FILE_EXTENSION);
 
278
 
 
279
  return internal::my_delete(path.c_str(), MYF(0));
 
280
}
 
281
 
273
282
bool Schema::doAlterSchema(const drizzled::message::Schema &schema_message)
274
283
{
275
284
  char   path[FN_REFLEN+16];