~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/schema.cc

  • Committer: Brian Aker
  • Date: 2010-08-05 20:24:49 UTC
  • mto: (1688.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1689.
  • Revision ID: brian@gaz-20100805202449-am05zi2zmjhklt8g
This fixes the lower casing of names from Schema even when we should not.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
 
136
136
SchemaIdentifier::SchemaIdentifier(const std::string &db_arg) :
137
137
  db(db_arg),
138
 
  db_path(""),
139
 
  lower_db(db_arg)
 
138
  db_path("")
140
139
141
 
  std::transform(lower_db.begin(), lower_db.end(),
142
 
                 lower_db.begin(), ::tolower);
143
 
 
144
 
  if (not lower_db.empty())
 
140
  if (not db_arg.empty())
145
141
  {
146
 
    drizzled::build_schema_filename(db_path, lower_db);
 
142
    drizzled::build_schema_filename(db_path, db);
147
143
    assert(db_path.length()); // TODO throw exception, this is a possibility
148
144
  }
149
145
}