~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/catalog.cc

updating

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
Catalog::Catalog(const std::string &name_arg) :
62
62
  _name(name_arg)
63
63
64
 
  assert(not name_arg.empty());
 
64
  init();
 
65
}
 
66
 
 
67
Catalog::Catalog(const drizzled::LEX_STRING &name_arg) :
 
68
  _name(name_arg.str, name_arg.length)
 
69
{
 
70
  init();
 
71
}
 
72
 
 
73
void  Catalog::init()
 
74
 
75
  assert(not _name.empty());
65
76
 
66
77
  build_schema_filename(path, _name);
67
78
  assert(path.length()); // TODO throw exception, this is a possibility