~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/schema.cc

  • Committer: Brian Aker
  • Date: 2011-01-11 07:12:09 UTC
  • mfrom: (2068.5.6 catalogs)
  • Revision ID: brian@gir-3-20110111071209-ntbex8btgayoq00v
MergeĀ inĀ catalogs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
 
64
64
SchemaIdentifier::SchemaIdentifier(const std::string &db_arg) :
65
65
  db(db_arg),
66
 
  db_path(""),
67
 
  catalog("LOCAL")
 
66
  db_path("")
68
67
69
68
#if 0
70
69
  string::size_type lastPos= db.find_first_of('/', 0);
157
156
  return true;
158
157
}
159
158
 
 
159
const std::string &SchemaIdentifier::getCatalogName() const
 
160
{
 
161
  return drizzled::catalog::local_identifier().name();
 
162
}
 
163
 
 
164
std::ostream& operator<<(std::ostream& output, const SchemaIdentifier &identifier)
 
165
{
 
166
  output << "SchemaIdentifier:(";
 
167
  output <<  catalog::local_identifier();
 
168
  output << ", ";
 
169
  output <<  identifier.getSchemaName().c_str();
 
170
  output << ", ";
 
171
  output << identifier.getPath().c_str();
 
172
  output << ")";
 
173
 
 
174
  return output;  // for multiple << operators.
 
175
}
 
176
 
160
177
} /* namespace drizzled */